Hi! I'm trying to figure out if it's possible to graph a piecewise mathematical function using Python where the limits of the function are dependent on another variable (i.e., if a > b, graph f(x); if b > a, graph g(x)). I've been trying to google stuff about graphing, but it's just left me more confused. I'm fairly new to programming, so any suggestions would be appreciated!
spockGirl
0
Newbie Poster
Recommended Answers
Jump to PostI think you should try matplotlib. See this code snippet http://www.daniweb.com/code/snippet216915.html and other examples here http://matplotlib.sourceforge.net/ (especially the gallery
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.