Comments (7)
You can use the gnuplot.raw()
function to enable it.
from gnuplot.
As an example, for anyone wondering in the future:
g = require 'gnuplot'
g.pngfigure('plots.png')
g.title('Plots of data')
g.raw("plot 'data.txt' using 2:3:(sprintf('(%d)', $1)) with labels point pt 7 offset char 1,1 notitle")
g.raw("set term png size 1280, 960") -- sets size of plot
g.xlabel('x')
g.ylabel('y')
g.plotflush()
where data.txt
might look like this:
1 0.34 0.5
2 0.26 0.6
3 0.11 0.7
...
from gnuplot.
However, are there ever plans to add labeling support natively? Labels seem important and someone not versed in gnuplot may struggle with finding the right raw command.
from gnuplot.
@suryabhupa the answer is no, unless someone sends a PR.
from gnuplot.
While the labeling might be more of a specific case, I can add an example in the docs?
from gnuplot.
sounds good
from gnuplot.
See #39.
from gnuplot.
Related Issues (20)
- `cannot open </usr/bin/gnuplot -persist > /dev/null 2>&1> in mode w` HOT 2
- plotflush doesn't close file
- how can i put picture into itorch notebook using gnuplot HOT 1
- Using gnuplot's multiplot HOT 2
- NaN behaviour
- Refreshing plot in PDF terminal creates new page.
- Feature request: option to see gnuplot's error output and actual commands sent to gnuplot
- single colorbox legend in imagesc multiplot
- How do I plot custom coloured lines? HOT 1
- Unable to load gnuplot in torch HOT 1
- Equivalent to MATLAB hold on for multiple plots? HOT 1
- Format strings for scatter3
- torch/gnuplot crashes on ubuntu 16.04 HOT 2
- gnuplot requires a lot of memory
- How to use gnuplot to plot graph in different terminals? HOT 2
- Crashing on Ubuntu HOT 2
- gnuplot.close(f) not working
- gnuplot.lua:612: attempt to call a nil value (global 'unpack') HOT 1
- Equivalent to Matlab surf
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 gnuplot.