Login  Register

Re: question about plot API

Posted by Aryeh Weiss on Sep 18, 2017; 1:03pm
URL: http://imagej.273.s1.nabble.com/question-about-plot-API-tp5019381p5019383.html

Hi Avital

Thank you for your response.

On 18/09/2017 15:40, Avital Steinberg wrote:
> Hi Aryeh,
> Which class does the plt object that you created belong to?
Belongs to Plot  .  I found the following:

1. I can draw a second trace with addpoints, using Plot.LINE, which
gives the correct appearance, except that the legend will not include
the line.

2. I can get the label into the legend if I put a null string ("") in
Plot.addLegend(). So that question  is answered.

Best regards
--aryeh

>
> Thanks,
> Avital
>
> בתאריך 18 בספט' 2017 3:26 PM,‏ "Aryeh Weiss" <[hidden email]
> <mailto:[hidden email]>> כתב:
>
>     I have not been able to figure out how to plot connected markers,
>     other than circles. For example:
>
>     plt.addPoints(range(1,14), dsum, None, Plot.CONNECTED_CIRCLES,
>     "Total Area")
>
>     adds a trace to plt. However, in another line, I have
>
>     plt.addPoints(range(1,14),[x/tmp[0] for x in tmp], None,  i%8 ,
>     "Track "+ str(i))
>
>     where I use i%8 to cycle through the various markers (CROSS, DOT,
>     TRIANGLE, etc).
>     and I would like to plot these connected, just like the connected
>     circles, but I cannot find the option to do that.
>
>     A second question is how to use the labels that are in the last
>     argument of the addPoints command. I would like to put them in the
>     legend, but I do not see how to recover them in order to add them
>     to the addLegend command.
>
>     Thanks in advance for any help on these issues.
>
>     --aryeh
>
>     --
>     Aryeh Weiss
>     Faculty of Engineering
>     Bar Ilan University
>     Ramat Gan 52900 Israel
>
>     Ph: 972-3-5317638 <tel:972-3-5317638>
>     FAX: 972-3-7384051 <tel:972-3-7384051>
>
>
>     --
>     ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>     <http://imagej.nih.gov/ij/list.html>
>
>

--
Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html