We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After trying to make a plot with this code:
plt.plot((_x, _i, {'legend': 'incandescent'}), (_x, _c, {'legend': 'CFC'}), (_x, _h, {'legend': 'Halogen'}), (_x, _l, {'legend': 'LED'}), _with='lines', terminal='dumb 120,40')
I get this error:
Traceback (most recent call last): File "index.py", line 47, in <module> terminal='dumb 120,40') File "/usr/local/lib/python3.7/site-packages/gnuplotlib.py", line 2669, in plot globalplot.plot(*curves) File "/usr/local/lib/python3.7/site-packages/gnuplotlib.py", line 2501, in plot *curves, **jointOptions), ) File "/usr/local/lib/python3.7/site-packages/gnuplotlib.py", line 2486, in make_subplot_data subplotOptions) File "/usr/local/lib/python3.7/site-packages/gnuplotlib.py", line 2122, in _massageAndValidateArgs curves = [ reformat(curve) for curve in curves ] File "/usr/local/lib/python3.7/site-packages/gnuplotlib.py", line 2122, in <listcomp> curves = [ reformat(curve) for curve in curves ] File "/usr/local/lib/python3.7/site-packages/gnuplotlib.py", line 2105, in reformat if all( x.size <= 0 for x in curve ): File "/usr/local/lib/python3.7/site-packages/gnuplotlib.py", line 2105, in <genexpr> if all( x.size <= 0 for x in curve ): AttributeError: 'list' object has no attribute 'size'
Expected output is a graph showing all four lines across x.
The text was updated successfully, but these errors were encountered:
All your data arguments should be numpy arrays. I bet some of them are plain Python lists. Yes?
Sorry, something went wrong.
Thanks so much! I was using plain lists. After modifying it to use numpy lists it worked properly.
No branches or pull requests
After trying to make a plot with this code:
I get this error:
Expected output is a graph showing all four lines across x.
The text was updated successfully, but these errors were encountered: