Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Gnuplot interactive function plotter > Re: epslatex cl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 9 Topic 3348 of 3630
Post > Topic >>

Re: epslatex clustered histogram fills and patterns

by tdwatson@[EMAIL PROTECTED] Jun 9, 2008 at 01:44 PM

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"
 




 9 Posts in Topic:
epslatex clustered histogram fills and patterns
tdwatson@[EMAIL PROTECTED  2008-06-08 10:19:32 
Re: epslatex clustered histogram fills and patterns
merritt@[EMAIL PROTECTED]  2008-06-08 10:45:43 
Re: epslatex clustered histogram fills and patterns
tdwatson@[EMAIL PROTECTED  2008-06-09 05:39:30 
Re: epslatex clustered histogram fills and patterns
merritt@[EMAIL PROTECTED]  2008-06-09 08:30:13 
Re: epslatex clustered histogram fills and patterns
tdwatson@[EMAIL PROTECTED  2008-06-09 13:44:18 
Re: epslatex clustered histogram fills and patterns
merritt@[EMAIL PROTECTED]  2008-06-09 15:30:10 
Re: epslatex clustered histogram fills and patterns
Dan Hatton <vi5u0-gnup  2008-06-11 11:13:13 
Re: epslatex clustered histogram fills and patterns
tdwatson@[EMAIL PROTECTED  2008-06-10 09:38:30 
Re: epslatex clustered histogram fills and patterns
merritt@[EMAIL PROTECTED]  2008-06-10 10:10:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 21:02:15 CST 2008.