Code Monkey home page Code Monkey logo

Comments (7)

Atcold avatar Atcold commented on August 22, 2024

You can use the gnuplot.raw() function to enable it.

from gnuplot.

suryabhupa avatar suryabhupa commented on August 22, 2024

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.

suryabhupa avatar suryabhupa commented on August 22, 2024

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.

soumith avatar soumith commented on August 22, 2024

@suryabhupa the answer is no, unless someone sends a PR.

from gnuplot.

suryabhupa avatar suryabhupa commented on August 22, 2024

While the labeling might be more of a specific case, I can add an example in the docs?

from gnuplot.

soumith avatar soumith commented on August 22, 2024

sounds good

from gnuplot.

suryabhupa avatar suryabhupa commented on August 22, 2024

See #39.

from gnuplot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.