DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

copying the legend with a NEWDOCUMENT plugin

 
Post new topic   Reply to topic    DPlot Forum Index -> C, C++, C#
View previous topic :: View next topic  
Author Message
pomalle



Joined: 18 Feb 2009
Posts: 8

PostPosted: Mon Jun 21, 2010 8:29 am    Post subject: copying the legend with a NEWDOCUMENT plugin Reply with quote

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!
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Mon Jun 21, 2010 1:24 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pomalle



Joined: 18 Feb 2009
Posts: 8

PostPosted: Mon Jun 21, 2010 1:43 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Mon Jun 21, 2010 1:52 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> C, C++, C# All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group