On 9 Jun, 16:30, merr...@[EMAIL PROTECTED]
(Ethan Merritt) wrote:
> In article
<17037027-4e3d-4abc-8278-989176460...@[EMAIL PROTECTED]
>,
>
>
>
> =A0<tdwat...@[EMAIL PROTECTED]
> wrote:
> >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
>
> Works fine here, although I suspect you want another line:
> =A0 =A0set yrange [0:*]
>
> so that the base of the histograms is at 0.
>
> --
> Ethan A Merritt
Thanks Ethan. I seem to have pinned down the issue a little bit. To
sidestep anything that might be a problem on my Mac I am testing under
Ubuntu for the time being.
If I plot the data file
Jan 1 1
Feb 2 2
Mar 3 3
all is fine (a total of 6 columns appear), but if I plot the data file
Jan 1 1
Feb 2 2
Mar 3 3
Apr 4 4
May 5 5
I still get six columns. Note that these are not the same. If I can
attempt to translate into text I get:
| x x
| x x x
| x x x x
|xx x x x x
+--------------------------
so in other words I get both columns for "Jan" but only the data for
column 2 for the other months... I am at a loss to explain this,
because all appears fine if I output to a png terminal.
The code I am currently tinkering with as I write this is below.
It could be that I am doing something really stupid here with how I am
using gnuplot. So, just to check, what I am doing is loading gnuplot
and then issuing the command load 'monthlytest.plot'.
At the risk of seeming greedy, do you have any more ideas?
best,
Toby.
---- code:
set terminal epslatex color
set output "monthlytest.tex"
#set terminal png font
#set output "monthlytest.png"
set boxwidth 0.9 relative
set style data histograms
set style histogram clustered
set xlabel "Month"
set yrange [0:*]
plot 'monthlytest.dat' using 2:xticlabels(1) fs pattern 1 lt-1 title
"J=3D10,K=3D10",\
'' using 3 fs pattern 2 lt-1 title "J=3D20, K=3D20"


|