bugGNU Octave - Bugs: bug #45302, linewidth changes are not applied...

 
 

bug #45302: linewidth changes are not applied in eps, eps2, epsc, epsc2 or svg print exports.

Submitter:  None
Submitted:  Thu 11 Jun 2015 09:04:09 AM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Niko Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.2
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 Jun 2015 09:59:08 PM UTC, comment #2: 

Thanks for your bug report. I think this is essentially the same as bug #43552 reported earlier, marking as a duplicate. I can confirm what you report, that depending on the file format being printed to the line width has a different effect on the output file. For example, a line width of 10 renders much differently when printed to a eps vs png file.

Mike Miller <mtmiller>
Group Member
Thu 11 Jun 2015 01:26:35 PM UTC, comment #1: 

I checked the problem myself. I've to increase the linewidth to 30 20 or 10  to see a difference in the exported plots. Whats bugging me right know is that depending the dataformat to export one needs different linewidths to see equal resulting linewidths in the different dataformats. I think there is a scaling problem, since the plots in the octave figures seem to change their linewidth to multiples of that in the exported files eps, svg, png, ... etc.

Anonymous
Thu 11 Jun 2015 09:04:09 AM UTC, original submission:  

When printing the following plot the linewidth in the figures changes, but the exported eps, eps2, epsc, epsc2 or svg files do not contain the changed linewidths. See png compared to eps inbound...




close all;
    graphics_toolkit("gnuplot");
    figure(123);
    h=subplot(2,2,4);
    plot(REDsect1/3600.0,REDsecav1,'color',[0 0 0.8],"LineWidth",3);
    hold on;
    plot(REDsect2/3600.0,REDsecav2,'color',[0 0.8 0],"LineWidth",3);
    title(["G: COBS-OBS\n" "B: OTHER-OBS"]);
    FS = findall(h,'-property','FontSize');
    set(FS,'FontSize',90);
    xlabel('time [h]',"fontsize",70);
    ylabel('Z sec average [nT]',"fontsize",70);
    grid on;
    set(gca,"fontsize",48);
    axis([-0.1 tss(end)/3600.0+0.1 min(horzcat(atemp1',atemp2'))*1.1 max(horzcat(atemp1',atemp2'))*1.1]);
####
    h=subplot(2,2,3);
    plot(REDmint1/3600.0,REDminav1,'color',[0 0 0.8],"LineWidth",3);
    hold on;
    plot(REDmint2/3600.0,REDminav2,'color',[0 0.8 0],"LineWidth",3);
    title(["G: COBS-OBS\n" "B: OTHER-OBS"]);
    FS = findall(h,'-property','FontSize');
    set(FS,'FontSize',90);
    xlabel('time [h]',"fontsize",70);
    ylabel('Z min average [nT]',"fontsize",70);
    grid on;
    set(gca,"fontsize",48);
    axis([-0.1 tss(end)/3600.0+0.1 min(horzcat(atemp1',atemp2'))*1.1 max(horzcat(atemp1',atemp2'))*1.1]);
#####
####
    h=subplot(2,2,2);
    plot(REDtenmint1/3600.0,REDtenminav1,'color',[0 0 0.8],"LineWidth",10);
    hold on;
    plot(REDtenmint2/3600.0,REDtenminav2,'color',[0 0.8 0],"LineWidth",10);
    title(["G: COBS-OBS\n" "B: OTHER-OBS"]);
    FS = findall(h,'-property','FontSize');
    set(FS,'FontSize',90);
    xlabel('time [h]',"fontsize",70);
    ylabel('Z ten-min average [nT]',"fontsize",70);
    grid on;
    set(gca,"fontsize",48);
    axis([-0.1 tss(end)/3600.0+0.1 min(horzcat(atemp1',atemp2'))*1.1 max(horzcat(atemp1',atemp2'))*1.1]);
####
#    h=subplot(2,2,2);
#    title(["G: COBS-OBS\n" "B: OTHER-OBS"]);
#    plot(REDhhourt1/3600.0,REDhhourav1,'color',[0 0 0.8],"LineWidth",10);
#    hold on;
#    plot(REDhhourt2/3600.0,REDhhourav2,'color',[0 0.8 0],"LineWidth",10);
#    title('G: COBS-OBS, B: OTHER-OBS');
#    xlabel('time [h]',"fontsize",70);
#    ylabel('Z half-h average [nT]',"fontsize",70);
#    grid on;
#    axis([-0.1 tss(end)/3600.0+0.1 min(horzcat(atemp1',atemp2'))*1.1 max(horzcat(atemp1',atemp2'))*1.1]);
#####
    h=subplot(2,2,1);
    plot(REDhourt1/3600.0,REDhourav1,'color',[0 0 0.8],"LineWidth",10);
    hold on;
    plot(REDhourt2/3600.0,REDhourav2,'color',[0 0.8 0],"LineWidth",10);
    title(["G: COBS-OBS\n" "B: OTHER-OBS"]);
    FS = findall(h,'-property','FontSize');
    set(FS,'FontSize',90);
    xlabel('time [h]',"fontsize",70);
    ylabel('Z hour average[nT]',"fontsize",70);
    grid on;
    set(gca,"fontsize",48);
    axis([-0.1 tss(end)/3600.0+0.1 min(horzcat(atemp1',atemp2'))*1.1 max(horzcat(atemp1',atemp2'))*1.1]);
#####
#    print("./outfiles/average_comparison.svg","-S4096,3072");
    print ./outfiles/average_comparison.eps -depsc2 "-S4096,3072";


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #34199:  figure.png added by None (97KiB - image/png)
file #34200:  average_comparison.eps added by None (263KiB - image/x-eps)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-11 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #43552
    2015-06-11 None Attached File- Added figure.png, #34199
        Attached File- Added average_comparison.eps, #34200

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code