copying the legend with a NEWDOCUMENT plugin

Q&A for C, C++, and/or C# developers using DPlot
Post Reply
pomalle
Posts: 8
Joined: Wed Feb 18, 2009 10:02 am

copying the legend with a NEWDOCUMENT plugin

Post by pomalle »

Is there a way to copy the legend from the existing dplot document into the new document when a PLUGIN_NEWDOCUMENT plugin is used? Same for the titles? I can't seem to figure out a way to make the new document look like the existing one (aside from the modified data, of course.) Thanks!
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

It does this by default. Unless you're zero'ing out the DPlot structure within your plugin or otherwise replacing the legend entries, that's the behavior you should get.
Visualize Your Data
support@dplot.com
pomalle
Posts: 8
Joined: Wed Feb 18, 2009 10:02 am

Post by pomalle »

That's interesting. I don't touch the dplot structure other than to read values from it. When i run the plugin, the new document looks exactly the same as the original except for the legend which disappears and the trace colors get changed or reset.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

You're welcome to send me the source for your plugin, and I'll see if anything hops out at me.
Visualize Your Data
support@dplot.com
Post Reply