[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36065] Line styles not automatically rotated
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #36065] Line styles not automatically rotated when saving to eps |
Date: |
Mon, 02 Apr 2012 12:40:35 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0 |
URL:
<http://savannah.gnu.org/bugs/?36065>
Summary: Line styles not automatically rotated when saving to
eps
Project: GNU Octave
Submitted by: None
Submitted on: Mon 02 Apr 2012 12:40:34 PM UTC
Category: Plotting with gnuplot
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Moreno Marzolla
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.1
Operating System: GNU/Linux
_______________________________________________________
Details:
Consider the following code:
x = 1:10;
plot(x,3*sqrt(x),";First;",x,2*sqrt(x),";Second;",x,sqrt(x),";Third;");
print("test.eps","-deps2","-mono","-debug");
Using Octave 3.2.3 as shipped with ubuntu 10.04, I get that the three curves
have different linestyle (see attached test.eps.good). Using octave 3.6.1
(which I compiled myself, again under ubuntu 10.04), I get all solid lines
(see attached test.eps.bad) both with the gnuplot and with the fltk backend.
At the moment I cannot check if this happens with a recent tip also.
Looking at octave-print-commands.log which is produced by the "-debug" option
above, I see that Octave 3.2.3 inserts this:
set style line 1 default;
set style line 1 linewidth 0.500000 pointsize 1.000000;
set style line 2 default;
set style line 2 linewidth 0.500000 pointsize 1.000000;
set style line 3 default;
set style line 3 linewidth 0.500000 pointsize 1.000000;
while Octave 3.6.1 inserts this:
set style line 1 default;
set style line 1 linetype 1 linewidth 0.500000;
set style line 2 default;
set style line 2 pointsize 2.000000;
set style line 2 default;
set style line 2 linetype 1 linewidth 0.500000;
set style line 3 default;
set style line 3 pointsize 2.000000;
set style line 3 default;
set style line 3 linetype 1 linewidth 0.500000;
set style line 4 default;
set style line 4 pointsize 2.000000;
The problem seems caused by the fact that all styles are defined with
"linetype 1" (there are also redundant "set style line X default").
I can get the old behavior by manually setting the line styles as follows:
x = 1:10;
plot(x,3*sqrt(x),"-;First;",x,2*sqrt(x),"--;Second;",x,sqrt(x),":;Third;");
print("test.eps","-deps2","-mono","-debug");
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 02 Apr 2012 12:40:34 PM UTC Name: test.eps.good Size: 23kB By:
None
<http://savannah.gnu.org/bugs/download.php?file_id=25547>
-------------------------------------------------------
Date: Mon 02 Apr 2012 12:40:34 PM UTC Name: test.eps.bad Size: 23kB By:
None
<http://savannah.gnu.org/bugs/download.php?file_id=25548>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36065>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #36065] Line styles not automatically rotated when saving to eps,
anonymous <=