From: ANDREW ROSS [mailto:an.ross@...] On Behalf Of Andrew Ross
Sent: Monday, February 27, 2012 2:09 PM
To: Quezada, Marco
Cc: Plplot-general mailing list
Subject: Re: [Plplot-general] Axes not showing.
On Mon, Feb 27, 2012 at 02:46:06PM +0000, Quezada, Marco wrote:
> > For that simplest example I suggest you follow closely the model of
> > our simplest standard example, examples/c/x00c.c, in the current svn
> > trunk version. Except, of course, include the variation of that code
> > that suppresses the axes and bounding box similar to your current much more
> > complicated example that demonstrates the issue. And, of course, that
> > effort on your part to replicate the problem in a simple way may be all
> > the debugging you need to do to find the source fo the problem.
> > By the way, if you don't want to download PLplot svn trunk, then the
> > standard x00 code is available from the web at
> > http://plplot.svn.sourceforge.net/viewvc/plplot/trunk/examples/c/x00c.c?revision=12175&view=markup.
> > The equivalent code is also available in Fortran 95
> > (examples/f95/x00f.f90) and Tcl (examples/tcl/x00.tcl) and soon should
> > be propagated to the rest of our languages as well because the
> > simplest possible example is often so useful for for debugging
> > purposes (as now) and also as a quick-start tutorial.
> >Co-incidentally I got round to this last night so example 00 is now available
> >for all languages in trunk.
> Thanks for the info, I will keep it in mind. The problem I am experiencing now seems to be more of an fltk/cairo problem where the context draws the axes when I create the plplot window but then when the data is added at a later time with plline fltk clears the context, removing the axes and draws only the data.
You are entering new territory here. We have not tested plplot with fltk
/ cairo before. Alan's advice still stands. Try to reduce the problem
down to as simple an example as possible and post it to the list.
Hopefully this will allow others to reproduce your problem and give
them as good a chance as possible of solving it.
Incidentally, if you are willing to contribute a simple example of how
to use fltk / cairo it might be a useful addition to our examples. The
examples are the main way of demonstrating to users many of the features
of plplot. They also serve as a useful check that things work as expected
when either plplot or external libraries are upgraded.
No problem, I will try my best to reduce my code to a point where I can share it to be replicated by others.
Last week when I finally figured out how to use plplot on fltk through the Cairo context I put together a simple example based on one of the available demos in plplot. I sent an email to both the developers and general list announcing this and mentioned that I was happy to lend my test case to the developers for inclusion in the code as you mentioned. I pasted the code in the email also in case anyone browsing for plplot and fltk might find it and use it, but I never heard back from anyone so I was not sure there was interest on picking it up. But if there is I'll be glad to help as I can.