Steve,

Drawing the box three times is not a problem, but I wasn't sure whether that 
meant I was taking advantage of the freedom having a library (vs. the gnuplot 
black box process), or whether I was just plain missing the obvious.  gnuplot 
makes a big thing of major and minor ticks and grid lines, probably more than 
is strictly necessary even working the way it does.

The unicode glyphs are *very* nice.  As far as getting glyphs to appear at an 
intuitive position, I solved that problem elsewhere by creating my own true 
type font and aligning the symbols (tip of the triangle, etc.) with the base 
and center lines.  With Windows' approach to text, I was able to put them 
within a pixel of where I wanted them.  As much as Windows has been a net thorn 
in my side, I do miss device contexts.  PLplot looks like it can fill most of 
the void.

Thanks!!

Bill


________________________________________
From: Steve Schwartz [[email protected]]
Sent: Friday, November 12, 2010 7:11 AM
To: Schwab,Wilhelm K
Cc: [email protected]
Subject: Re: [Plplot-general] Can PLplot do this?

Wilhelm,

Unless I've misunderstood what you want, this isn't too difficult. I
attach something I threw together and the output. There isn't very much
"clever" here:

I drew the box 3 times: once to get the minor grid, once for the major
grid, and once more to get the border black (I made the grids grey to
match yours).

The graph markers can be made using plpoin, plsym, or plptex depending
on what glyph is available. Note using plptex gives you access to the
entire Unicode set of glyphs, so you could also use hearts or any
imaginable symbol. It's a tiny bit more work to loop through the points
yourself to employ plptex, but it's just one more line of code and it
takes no extra processing time.

I have noticed in the past some small differences in the vertical
alignment of the glyphs with respect to the  (x,y) coordinate, but in
all cases the (x,y) point was within the symbol so unless you need
extreme accuracy that shouldn't be a problem. In any case you can
experiment with different symbols yourself.

I haven't labelled the ticks or done more with the axes, but that is all
very easy in plplot. Indeed, labelling ticks is trivial. There are also
capabilities to treat an axis as time and to label it hh:mm:ss or
whatever in a very flexible way. See plplot example 29.

HTH
Steve

On Thu, 2010-11-11 at 19:12 +0000, Schwab,Wilhelm K wrote:
> Suppose you were challenged with producing exactly the attached
> output.  Do you have any thoughts on clever ways to do it using
> PLplot?  Are there things you would advise NOT doing? :)   To say I
> need exactly the displayed output is too strong; it was produced using
> gnuplot and is itself a compromise.  However, it gets a few things
> right; in particular, distinguished major and minor grid lines are a
> must.
>
> Not that it really matters, but the data are blood pressures (measured
> a couple of different ways, hence the different symbols), and heart
> rate.  The minor grid lines are spaced at 15 minutes, but I could just
> as easily (and did so here) express time in seconds.  The vertical
> range of the numbers is 0-250 with heavy grid lines every 50 units.
--
+-------------------------------------------------------------------+
Professor Steven J Schwartz        Phone: +44-(0)20-7594-7660
Head, Space & Atmospheric Physics  Fax:   +44-(0)20-7594-7772
The Blackett Laboratory            E-mail: [email protected]
Imperial College London            Office: Huxley 6M67A
London SW7 2AZ, U.K.               Web: www.sp.ph.ic.ac.uk/~sjs
+-------------------------------------------------------------------+

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to