Comments (4)
Will run some tests on Python 3, but should work.
from pygnuplot.
But I didn't get it work , the error is bellow
[boomer@boomer prometheus-report]$ python3
Python 3.6.2 (default, Aug 11 2017, 11:59:59)
[GCC 7.1.1 20170622 (Red Hat 7.1.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyGnuplot import *
>>> c("plot sin(x)")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/PyGnuplot.py", line 63, in c
proc.stdin.write(command + '\n') # \n 'send return'
TypeError: a bytes-like object is required, not 'str'
>>>
from pygnuplot.
I found solution from https://stackoverflow.com/questions/5965874/python-3-writing-to-a-pipe, see below
proc.stdin.write(bytearray(command + '\n', 'utf-8'))
from pygnuplot.
Ok thank you, you were faster than me :)
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
- 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 .s restrictions HOT 6
- 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.