Login  Register

Re: Suggestion for Plot Profile

Posted by Gabriel Landini on Mar 12, 2021; 11:58am
URL: http://imagej.273.s1.nabble.com/Suggestion-for-Plot-Profile-tp5024515p5024526.html

I replied earlier but the mailing list does not seem to be working?

That's right! it is as Fred indicated: the label does not appear from the
start. I need to resize the plot to make it visible. Sorry if my previous mail
was unclear.

It seems to me that after the label is added, the location where it appears is
not refreshed/repainted. Maybe the label should be added earlier, when the
image size is added?

Regards
Gabriel




On Friday, 12 March 2021 02:42:26 GMT [hidden email] wrote:

> Greetings Michael,
>
> If I read Gabriel's issue correctly, the problem is not that the label
> disappears, the problem is that sometimes the label does not initially
> appear in the GUI, albeit when the plotwindow is convinced to redisplay
> the label shows in the GUI.  This sounds similar to problems that I have
> had in the past, (subject: plot window bug), where the plot window was
> displayed with a size other that what I had requested and upon causing a
> redisplay the window would adjust to the requested size.  I was able to
> force a redisplay programmatically in Java by calling calling
> windowActivated(null) and then drawPlot again.  The problem on my Linux
> machine tended to happen more often the more it was overloaded, thus my
> suspension of a race condition between Java proper and ImageJ in regards
> to the GUI.
>
> Fred
>
> PS: Wayne has already fixed this specific problem.
>
> On Thu, March 11, 2021 3:13 pm, Michael Schmid wrote:
> > Hi Gabriel,
> >
> > sorry, I can't reproduce the problem. The label "horizontal" remains
> > visible when resizing or maximizing the plot, even with
> > Image>Adjust>Size. It also remains in Live Mode.
> > Even "Duplicate" copies it (but it loses the information that this is a
> > plot).
> >
> > Is the remaining text of the subtitle line (image size, 8-bit, memory)
> > still there? If not, it could be either a problem of the graphics driver
> > or the interaction of Java with the Window Manager of the operating
> > system.
> >
> > When the label has disappeared, with the plot being the active window,
> > could you please try this JavaScript?
> >
> >    imp=IJ.getImage();
> >    IJ.log(imp.getProperty("Label"));
> >
> > It should print the label "horizontal" to the log.
> >
> >
> > Michael
> > ________________________________________________________________
> >
> > On 11.03.21 20:29, Gabriel Landini wrote:
> >> On Thursday, 11 March 2021 13:00:33 GMT [hidden email] wrote:
> >>>> On Mar 10, 2021, at 9:31 AM, Gabriel Landini <[hidden email]>
> >>>> wrote:
> >>>
> >>>> I have a suggestion:
> >>> Thanks to Michael Schmid, ImageJ displays â?ohorizontalâ? in the image
> >>> info
> >>> line for column average plots and â?overticalâ? for row average plots.
> >>
> >> Thank you!! For some reason I think there might be a refresh of the plot
> >> missing?
> >>
> >> newImage("Untitled", "RGB ramp", 256, 256, 1);
> >> run("Select All");
> >> run("Plot Profile");
> >> //selectWindow("Untitled");
> >> //setKeyDown("alt"); run("Plot Profile");
> >>
> >> does not always show the string. If I maximise/resize the plot then the
> >> string
> >> appears.
> >>
> >> Best wishes,
> >>
> >> Gabriel
> >>
> >> --
> >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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