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

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

[Octave-bug-tracker] [bug #48814] Rotated text in any print export


From: anonymous
Subject: [Octave-bug-tracker] [bug #48814] Rotated text in any print export
Date: Thu, 18 Aug 2016 15:22:47 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

URL:
  <http://savannah.gnu.org/bugs/?48814>

                 Summary: Rotated text in any print export
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 18 Aug 2016 03:22:44 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Frank Knappe
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

When I run the following code I get the wanted plots on the screen. All labels
for the "iso"-lines are upright. However, when I print the figure (png, epsc2,
pdf) the labels are 90 degrees rotated (parallel to the y-axis)

wind_speed = 7:0.1:13;
rotor_diameter = (100:5:250)';
rho_wind = 1.225;
c_p = 0.45;
eta_mech2el = 0.94;
power_scale_lines = 5:1:20;
power_scale_labels = 5:5:20;
options = ['c_p = ', num2str(c_p), ', \eta_mech2el =', num2str(eta_mech2el)]
power_wind = c_p * eta_mech2el * 1/2 * rho_wind * pi * (rotor_diameter/2).^2 *
wind_speed.^3;

figure
[c, h] = contour(wind_speed, rotor_diameter,
power_wind/1000/1000,power_scale_lines);
grid on
clabel(c,h, power_scale_labels)
xlabel('wind speed [m/s]')
ylabel('rotor diameter [m]')
title(options)
print -dpdf scaling_rules_1.pdf
print -dpng scaling_rules_1.png
print -depsc2 scaling_rules_1.eps



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 18 Aug 2016 03:22:44 PM UTC  Name: scaling_rules_1.pdf  Size: 8kB  
By: None

<http://savannah.gnu.org/bugs/download.php?file_id=38251>
-------------------------------------------------------
Date: Thu 18 Aug 2016 03:22:44 PM UTC  Name: scaling_rules_1.eps  Size: 98kB  
By: None

<http://savannah.gnu.org/bugs/download.php?file_id=38252>
-------------------------------------------------------
Date: Thu 18 Aug 2016 03:22:44 PM UTC  Name: scaling_rules_1.png  Size: 107kB 
 By: None

<http://savannah.gnu.org/bugs/download.php?file_id=38253>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48814>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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