On 8 Jun, 18:45, merr...@[EMAIL PROTECTED]
(Ethan Merritt) wrote:
> In article
<dfbd22c1-398d-4f24-aebb-7b05027fe...@[EMAIL PROTECTED]
>,
>
> =A0<tdwat...@[EMAIL PROTECTED]
> wrote:
> >Dear All,
>
> >I am having a bit of a problem with epslatex and a clustered
> >histogram. I have included a minimal example of my code at the end of
> >this post. If I use aquaterm for this I get a the clustered bars in
> >different shades just fine. However, in the epslatex terminal I only
> >get the first bar of each cluster shaded (the others appear invisible
> >when I compile my LaTeX do***ent). I have tried with patterns and
> >variations on calling the epslatex terminal and get the same result.
> >Clearly, I must be doing something wrong, but I'm not sure exactly
> >what. Perhaps someone could point me in the right direction as copious
>
> Your script works fine here in both version 4.2.3 and current cvs.
> Have you tried viewing the *.eps file by itself? =A0If that looks ok,
> then it is the latex processing or viewer that is causing a problem.
>
>
>
> >Toby.
>
> >#set terminal aqua
> >set terminal epslatex
> >set output "monthly.tex"
>
> >set boxwidth 0.9 relative
> >set style data histograms
> >set style histogram clustered
> >set xlabel "Month"
>
> >plot =A0 =A0 =A0 =A0'monthly.dat' using 2 fs solid 0.33 lt-1,\
> > =A0 =A0 =A0 =A0 =A0 =A0'' using 3:xticlabels(1) fs solid 0.66 lt-1
>
> >PS - if it is relevant I am using the graphicx and xcolor packages in
> >my LaTeX do***ent.
>
> --
> Ethan A Merritt
Dear Ethan,
Thanks so much for the reply. I have opened the eps and unfortunately
it too seems to be not what I am expecting. To get a better idea I
have simplified things further and provided a data file below. What
happens is that only some columns are plotted.
I am now really at a loss as to why this is and I'm going round in
circles a bit! Any further ideas very much appreciated.
Best wishes,
Toby.
PS - I am using gnuplot v 4.2 patchlevel 3 on Mac OS X if that helps.
monthlytest.plot
-----------------------
set terminal epslatex input newstyle monochrome solid blacktext
set output "monthlytest.tex"
set boxwidth 0.9 relative
set style data histograms
set style histogram clustered
set xlabel "Month"
plot 'monthlytest.dat' using 2 fs solid 0.33 lt-1, '' using 3 fs solid
0.66 lt-1
monthlytest.dat
-----------------------
Jan 1 2
Feb 2 3
Mar 3 4
Apr 4 5


|