<div dir="ltr"><div>Mary, No worries, the work you (and all of the rest) do on here is fantastic. I can wait a few days. </div><div><br></div>Ah ok. Thought that would be the situation. The reason I ask is I wanted to break the y axis on a plot, and if you want an example I can provide one with code. Worked out a way to do it, and then made it into a function. At the moment though I have to pass 2 versions of the plot to the function. Which is fine, just not as elegant as I wanted. <div><br></div><div>Thanks for your assistance. <br><div><br></div><div>~Alan</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 9, 2014 at 6:46 PM, David Brown <span dir="ltr"><<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No I don't think there is any means of copying a plot object<br>
currently. Note that a copy would need to make copies of each of the<br>
building block objects that a plot object is composed of; e.g. new<br>
text objects for each piece of text. I am not sure that it would be<br>
much more efficient than just creating a new plot object as per your<br>
workaround.<br>
-dave<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Oct 9, 2014 at 4:23 PM, Mary Haley <<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>> wrote:<br>
> Alan,<br>
><br>
> Sorry about the delay in response. I've been out of the office a lot.<br>
><br>
> As far as I know, there is no way to make a copy of a plot without calling<br>
> the function again.<br>
><br>
> When you do something like this:<br>
><br>
> plot_a = plot<br>
> plot_b = plot<br>
><br>
> You are effectively pointing plot_a and plot_b to the same plot, so any<br>
> changes to any one of these is changing all of them, because they are the<br>
> same plot.<br>
><br>
> Dave Brown may know if we have an internal function that allows you to copy<br>
> a plot object without having to generate it from scratch.<br>
><br>
> --Mary<br>
><br>
><br>
> On Fri, Oct 3, 2014 at 12:17 PM, Alan Brammer <<a href="mailto:abrammer@albany.edu">abrammer@albany.edu</a>> wrote:<br>
>><br>
>> I came across an instance where I want to take a plot, duplicate it,<br>
>> change some settings in each of the new plot and draw both new plots.<br>
>><br>
>> However all changes to duplicated objects change all the other objects.<br>
>> I'm not sure of the proper terminology so made a simple example attached<br>
>> below<br>
>><br>
>> I make one plot, copy it, change the titles on the 2 new plots. Now all 3<br>
>> plots have the same title as the last one changed. And if I try and panel<br>
>> the 3 plots, it gets confused as I guess they're all really just one plot<br>
>> with 3 different pointers.<br>
>><br>
>> Is there a way to duplicate the plot not just create a new pointer to it.<br>
>> (without just running the plot line again, which is my current work<br>
>> around.).<br>
>><br>
>><br>
>><br>
>> Thanks,<br>
>> Alan.<br>
>><br>
>> _______________________________________________<br>
>> ncl-talk mailing list<br>
>> List instructions, subscriber options, unsubscribe:<br>
>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
</div></div></blockquote></div><br></div>