Skip to content
New issue

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

How do I plot custom coloured lines? #28

Open
tuananhle7 opened this issue Apr 30, 2016 · 1 comment
Open

How do I plot custom coloured lines? #28

tuananhle7 opened this issue Apr 30, 2016 · 1 comment

Comments

@tuananhle7
Copy link

tuananhle7 commented Apr 30, 2016

I want to plot three lines on the same plot like this

gnuplot.plot(
   {"Training", epochs, trainLosses, "-"},
   {"Validation", epochs, valLosses, "-"},
   {"Test", epochs, testLosses, "-"}
)

but with custom colours. Is this possible?

@ltrottier
Copy link

You can add gnuplot string style like this:

gnuplot.plot(
   {"Training", epochs, trainLosses, 'with line lt 5'},
   {"Validation", epochs, valLosses, 'with line lt rgb "magenta"'},
   {"Test", epochs, testLosses, 'with line lt rgb "#FFF000"'}
)

You have different choices, for instance with a predefined color number, gnuplot's named colors or hexadecimal. See here for example http://gnuplot.sourceforge.net/docs_4.2/node62.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants