Graphics, Figures & TablesGnuplot Histogram, color problem in latex

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
bagbyte
Posts: 3
Joined: Tue Nov 09, 2010 1:54 pm

Gnuplot Histogram, color problem in latex

Post by bagbyte »

Hi,
i'm making an histogram with multicolumn. I'm using the following gnuplot code to generate che histogram:

Code: Select all

plot 'data.dat' u 2 title 'A', u 3 title 'B', u 4 title 'C', u 5 title 'D'
but in latex all the histogram bar are black!

i tryed using:

Code: Select all

plot 'data.dat' u 2 title 'A' fs pattern 1, u 3 title 'B' fs pattern 2, u 4 title 'C' fs pattern 3, u 5 title 'D' fs pattern 4
but this time, 1st and 3rd column are white and 2nd and 4th are black.

There is any other solution to distinguish those bars? Like a grayscale...or pattern for latex?

Thank you!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Gnuplot Histogram, color problem in latex

Post by php1ic »

We need more information. From your other gnuplot related post, you use the latex terminal, do you use the colour option?

Can you post an example of how you create the histogram (the gnuplot commands), a minimal working example (MWE) and either the file 'data.dat' or a small amount of it so we can reproduce what you get.
Post Reply