Giter Site home page Giter Site logo

gnuplot-palettes's Introduction

Color palettes for gnuplot

In order to use a palette load it at the beginning of your gnuplot file via

load 'palette.pal'

Replace palette by the name of your desired palette, which are listed below.
Note, that this will not only define a palette, but also overwrite the first eight line styles. If you want to use your own line styles, you have to define them after the above command.

If you need more help, have a look at this example.

Most of the palettes are from ColorBrewer and were first ported to gnuplot by Anna Schneider.

If you look for a good standard palette try moreland.pal, which comes from Kenneth Moreland.

Image

gnuplot-palettes's People

Contributors

hagenw avatar jarvist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gnuplot-palettes's Issues

Adding matplotlib colormaps

Hi,

Thanks for this great compilation!
I gathered the colormaps from matplotlib and brought it into the gnuplot format. However, I did not take the time to create the linestyles for the colormaps, except the viridis colormap.

If you like, you can add these colormaps to the others.

Best,
Stefan

matplotlib-colormaps.zip

Overriding default palette

It may be worth including as a note in the readme, that it's possible to use these palettes to override the default, so that line styles do not need to be explicitly specified in plot commands. The method I use is a pair of commands like this:

palettefile(n) = sprintf("<sed 's/set style line/set linetype/' /path/to/gnuplot-palettes/%s.pal", n)
load palettefile("puor")

These can be put in your .gnuplot file to take effect on startup, and you can then call the load palettefile to select a different palette when desired.

Of course, if there is a better way to accomplish this, it would be good to know.

jet.pal: duplicate or conflicting arguments in style specification

Hi,

When I load jet.pal I have error messege:

       G N U P L O T
	Version 5.3 patchlevel 0    last modified 2018-03-05 

	Copyright (C) 1986-1993, 1998, 2004, 2007-2018
	Thomas Williams, Colin Kelley and many others

	gnuplot home:     http://www.gnuplot.info
	mailing list:     [email protected]
	faq, bugs, etc:   type "help FAQ"
	immediate help:   type "help"  (plot window: hit 'h')

    Terminal type is now 'qt'
     gnuplot> load "jet.pal"
     gnuplot> test palette

      gnuplot> set style line 1  linecolor rgb "navy"  linewidth 1.000 dashtype solid pointtype 1 
       pointsize default pointinterval 0 pointnumber 0
                                                                                                                                           ^
         line 58: duplicate or conflicting arguments in style specification

Adam

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.