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

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

[Octave-bug-tracker] [bug #56448] Back slashes in text objects break pos


From: Georg Wiora
Subject: [Octave-bug-tracker] [bug #56448] Back slashes in text objects break postscript export
Date: Thu, 6 Jun 2019 04:10:15 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0

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

                 Summary: Back slashes in text objects break postscript export
                 Project: GNU Octave
            Submitted by: gwiora
            Submitted on: Thu 06 Jun 2019 10:10:13 AM CEST
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: gwiora
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Create a text with a backslash and display it with 'interpreter' 'none'.
Postscript export looks broken then. I was using qt5 graphics on windows for
this result.


% Postscript export bug octave 5.1.0

mytext = sprintf("this is _\\pm ä test:\nwith a linebreak\n and a %.3f
number",pi)

x=linspace(0,10*pi,1000);
y=sin(x)+x;

fh = figure('name','my plot figure');
plot(x,y);
title(mytext,'interpreter','none');
text(0.4,0.4,mytext,'units','normalized','interpreter','tex','backgroundcolor','w');


mytext2 = {"this is a_\\pm test:","with ä linebreak"}

fh2 = figure('name','my plot figure2');
plot(x,y);
title(mytext2,'interpreter','none');
text(0.4,0.4,mytext2,'units','normalized','interpreter','tex','backgroundcolor','w');

print('-dpsc2', sprintf('-f%d',fh),'-r300','ps_export.ps');

print('-dpsc2', sprintf('-f%d',fh2),'-r300','-append','ps_export.ps');






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 06 Jun 2019 10:10:13 AM CEST  Name: ps_export.ps  Size: 218KiB   By:
gwiora
Sample postscript output and test script
<http://savannah.gnu.org/bugs/download.php?file_id=47043>
-------------------------------------------------------
Date: Thu 06 Jun 2019 10:10:13 AM CEST  Name: PostscriptexportBug.m  Size:
718B   By: gwiora
Sample postscript output and test script
<http://savannah.gnu.org/bugs/download.php?file_id=47044>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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