octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65846] multiline title is printed outside ima


From: Fabio
Subject: [Octave-bug-tracker] [bug #65846] multiline title is printed outside image when using inner positionconstraint
Date: Fri, 7 Jun 2024 10:58:49 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?65846>

                 Summary: multiline title is printed outside image when using
inner positionconstraint 
                   Group: GNU Octave
               Submitter: efferre79
               Submitted: Fri 07 Jun 2024 02:58:49 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 9.1.0
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 07 Jun 2024 02:58:49 PM UTC By: Fabio <efferre79>
I have a script that produces many output images from many plot kinds (plotyy,
plot with subplots, etc). I am trying to align horizontally the plots by
setting the first and third element of the "position" axis property. I do
other customizations such as change of the fontsize, for this reason I need to
force "positionconstraint" to innerposition too. 

The plots look fine in the figures while print() produces an output image that
has a portion of the title text clipped when using multiline. The minimum code
snippet shows the difference in the result:


figure(1)
plot(1,1)
title(sprintf('first line\nsecond line'))
set(gca,'positionconstraint','innerposition')
print('bad.png')

figure(2)
plot(1,1)
title(sprintf('first line\nsecond line'))
set(gca,'positionconstraint','outerposition')  % not needed
print('good.png')


No annotation is added after the set() call so all the graphic elements should
have a defined position. If I invert the set() and title() calls the result is
the same, of course in that case the dimensions and position of the plots
would be slightly different.

With print() I expect to have the same result visible in the figure.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65846>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]