Skip to content
My defaults for gnuplot
Branch: master
Clone or download
hesstobi Remove babel package form texheader because its moved it is added by …
…the gnuplot.tmbundle in this way it is more flexible
Latest commit 940e7ed Jul 11, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
help Add Latex definitions Jul 8, 2014
.gitignore Change Label-Ids for axes Jul 7, 2014
cdtudcolors.gp
colors-qualitative-clusterd.gp
colors-qualitative-paired.gp
colors-sequential-Gray.gp Start Creating now Template Design for Version 5.0 of Gnuplot Jul 4, 2014
colors-sequential-darkBlue.gp Start Creating now Template Design for Version 5.0 of Gnuplot Jul 4, 2014
colors-sequential-darkGreen.gp Start Creating now Template Design for Version 5.0 of Gnuplot Jul 4, 2014
colors-sequential-darkPurpel.gp
colors-sequential-lightBlue.gp Start Creating now Template Design for Version 5.0 of Gnuplot Jul 4, 2014
colors-sequential-lightGreen.gp
colors-sequential-lightOrange.gp
colors-sequential-lightPurpel.gp Start Creating now Template Design for Version 5.0 of Gnuplot Jul 4, 2014
defaults.gp Load the latex.gp by default only if terminal includes latex Jul 11, 2014
latex.gp Load the latex.gp by default only if terminal includes latex Jul 11, 2014
layout-centerAxis.gp
layout-default.gp Edit Layouts Jul 8, 2014
layout-empty.gp Edit Layouts Jul 8, 2014
layout-emptyCenterAxis.gp
paletteMatlab.gp
paletteMoreland.gp
readme.markdown
template-default.gp
texHeader.tex
unset-layout.gp Edit Layouts Jul 8, 2014

readme.markdown

What is this for?

This are my default definitions for plotting and working effective with gnuplot.

Installation

Too install the templates just store is somewhere on your computer and let Gnuplot know about it. I store these file in the Application Support Folder. To do same type and execute following in the console:

$ cd ~/Library/Application Support/
$ git clone https://github.com/hesstobi/Gnuplot-Templates.git Gnuplot

And than add this folder to the GNUPLOT_LIB Enviroment Variable by adding following line to your .bash_profile

export GNUPLOT_LIB="$HOME/Library/Application Support/Gnuplot:$GNUPLOT_LIB"

Usage

Essentials Defaults

All essential default are saved in the default.gp and the layout-default.gp. Simple

load 'defaults.gp'

to use the settings. Here is example plot with this layout:

Default Layout

Settings

You can easily change some settings by defining the following variables before you load the defaults

  • TEXTCOLOR
  • GRIDCOLOR
  • LINEWIDTH
  • POINTSIZE
  • LOCALE

The LOCALE is set by default to the $LANG environment variable. By over writing the value the decimalsign and foramting of dates is adapted.

Labels

For better control over the position of the x and y-labels there predefined labels for each axes.

Axes Label-ID
x 100
x2 101
y 200
y2 201

Use them in conjunction with bmargin, tmargin, rmargin and lmargin

Line Types

Since Gnuplot 5.0 the color and the dash-type are separated in the settings. To use dashes lines just define the dashtype in the plot command.

For plot with points or linepoints some nice point-types are preset in the line-type definition. To overwrite these just define the pointtype in the plot command

Exambles

Test LinestypesPNG

Color Themes

This Templates are including a nice set of different color themes. To use one of them run

load 'colors-[theme].gp'

Test ColorsPNG

More Layouts

The pictures showes the predefiend layouts of this template set. To use one of them run

load 'layout-[layout].gp'

The layout-default is load with the defaults.gp

Test LayoutsPNG

Latex

By loading latex.gp the format is set to \\num{%g} and these label function are set:

Test LatexPNG

You can’t perform that action at this time.