From: Alan W. I. <ir...@be...> - 2018-05-03 20:26:02
|
On 2018-05-03 13:56-0400 David Bergman wrote: > Dear all, > > I am using plplot 5.13.0 and wxwidgets 3.1.0 in a windows environment, VS > 2017. > I've attempted to merge the plplot wxwidgets example with more complex > wxwidgets examples to generate plots in various frames and panels in a larger > GUI format. > > The specific example that produced the figures in this email were made using > wxWidgets uiaction sample (UI action simulator) and the WxPLplotDemo code. > > In a nut shell I've made a splitter window in the main GUI and placed a copy > of one of the plots there via a call to Plot() in the mainframe definition. > The same plot is called for some menu action too. > > The issue I am seeing is that the plot in the main GUI does not have axis > labels or tick mark values but the separate plot, activated by the menu does. > > Also, if I refresh the plot in the gui via a separate menu action the missing > data returns. > > All calls are to the same function. I'm asking here first since it's the > plot generated by PLplot that is inconsistency but it may be a wxwidgets > issue. > > (it is clear that I was messing with other PLplot attributes too, like > subplot, color, etc. This was not the cause of the difference as it is > present regardless.) Modified code is attached (note that the "run > simulation" menu item will cause a crash.), it is a quick hack job but I'm > not seeing an obvious cause for the diff. > > This is the main frame GUI > > > This is the separate plot generated in a new frame. Hi David: I suggest you make a self-contained example that demonstrates the issue in the simplest way possible. Such simplified test examples are really worthwhile since they normally help you to find the bug in your own code or if there is no such bug make it much easier to debug external library code such as that from PLplot or wxwidgets. Also if it turns out the bug is not in your own code such a simplified example should be easy for PLplot developers to build with CMake and run on various platforms to see whether the issue shows up on all platforms. For example, I would be willing to help with such a test on the Linux platform. Good luck with implementing this suggested simplified example, and let us know how it goes. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |