Comments (6)
Sorry, uploaded the wrong .png, here is the correct one:
from pygnuplot.
I really like the package you have created. Not being able to store text data is a showstopper unfortunately for pie charts, histograms, etc. Could this be fixed, please? The error in Python 3 is:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/numpy/lib/npyio.py", line 1215, in savetxt
fh.write(asbytes(format % tuple(row) + newline))
TypeError: must be real number, not numpy.str_
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "xxxxx.py", line xx, in <module>
yyyyy()
File "zzzzz.py", line zz, in yyyyy
PyGnuplot.s([x, y])
File "/usr/local/lib/python3.6/dist-packages/PyGnuplot.py", line 74, in s
_savetxt(filename, _array(data), delimiter=', ')
File "/usr/lib/python3/dist-packages/numpy/lib/npyio.py", line 1219, in savetxt
% (str(X.dtype), format))
TypeError: Mismatch between array dtype ('<U22') and format specifier ('%.18e, %.18e')
from pygnuplot.
All thats needed is a way to save not just data but also text into the same file then.
Working on it.
from pygnuplot.
The problems mentioned should me solved now;
Delimiter was changed form , to space.
Data should be saved in a more sane way. (hopefully)
Data storage should allow for text entries now.
(Which in its course removed its dependence on numpy).
Hope this works, please test it.
from pygnuplot.
Thanks for the fix Ben. I can now put text labels in the data file and make a graph like this:
from pygnuplot.
Thanks!
from pygnuplot.
Related Issues (18)
- Example Figures HOT 1
- Close gnuplot (window) HOT 4
- Error saving a pdf (on MacOS) using pdfcario HOT 3
- Feature Request: kwarg passthrough for _FigureList.__init__
- if gunplot is not installed, you get a cryptic error message HOT 1
- PyGnuplot on windows doesnt work out of the box HOT 2
- PNG/JPG output? HOT 1
- xtics newline don't work HOT 11
- Figure handling - a suggestion for improvement HOT 1
- The read function uses the wrong queue HOT 2
- How to use PyGnuplot with Jupyter notebook!
- Another suggestion HOT 1
- support in python3 HOT 4
- PyGnuplot TypeError: a bytes-like object is required, not 'str' on Python 3.6.1 Windows 7 HOT 2
- PyGnuplot no error output, no output file from gnuplot HOT 8
- PyGnuplot feature request: capture & return of stdout/stderr info HOT 1
- Create Debian package for Debian and Ubuntu HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygnuplot.