-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hi...
First of all, thank you for creating this code and making it publicly available! The output looks lovely, and I think you're filling an important niche in the matplotlib ecosystem.
I did a read-only clone of your source from github and tried running the example code out of the box (ootb). Sadly, it failed with this error message:
larson@calhoun:Matplotlib1D-plot>python number_line_example.py
Traceback (most recent call last):
File "number_line_example.py", line 9, in
numline.graph(e)
File "/Users/larson/Scratch/NumberLine/Matplotlib1D-plot/number_line.py", line 96, in graph
toGraph = self.solve(eq,toGraph)
File "/Users/larson/Scratch/NumberLine/Matplotlib1D-plot/number_line.py", line 148, in solve
toGraph.append([self.getAfter(eq,'>') , self.ceil])
File "/Users/larson/Scratch/NumberLine/Matplotlib1D-plot/number_line.py", line 167, in getAfter
raise Exception("Error parsing equations. Make sure they are of the format x>1 where x is any variable and 1 is any number")
Exception: Error parsing equations. Make sure they are of the format x>1 where x is any variable and 1 is any number
</paste from shell>
I didn't modify anything in your distribution. I'm using python 2.7.4.
Any advice, help you can offer in addressing this mysterious message is greatly appreciated.
Thanks and all the best...
Jay
P.S.: I should explain why I downloaded your code. My primary reason was work-related--I want to plot 1-D sets of points rather than intervals (to visualize some work I'm doing with 1-D meshes and multigrid techniques), and had been hoping I could modify your code simply to plot sets of individual points. The second reason of course is that I have a 12-year-old son who doesn't share my love of mathematics, but he is pretty keen on python programming.