Created
September 13, 2022 13:35
-
-
Save CodeDrome/bdbfff5823bcbbc549a4b806e977f2cf to your computer and use it in GitHub Desktop.
functionplotterdemo.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functionplotter as fp | |
import samplefunctions as sf | |
def main(): | |
print("--------------------") | |
print("| codedrome.com |") | |
print("| Function Plotter |") | |
print("--------------------\n") | |
plot_samples() | |
def plot_samples(): | |
fp.plot(functions = [sf.samples["quadratic"]], | |
start = -2, | |
end = 2, | |
step = 0.05, | |
config = {"legend_labels": ["quadratic"], | |
"title": "Quadratic", | |
"xlabel": "x", | |
"ylabel": "y", | |
"linewidth": 0.5, | |
"colors": [ "#0000FF" ], | |
"x_limit": (-2.5, 2.5), | |
"y_limit": (-1, 5) | |
}) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment