|
From: Steve S. <s.s...@im...> - 2010-11-12 12:10:17
|
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: s.s...@im... Imperial College London Office: Huxley 6M67A London SW7 2AZ, U.K. Web: www.sp.ph.ic.ac.uk/~sjs +-------------------------------------------------------------------+ |