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

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

[Octave-bug-tracker] [bug #56137] Y-axis label is cut-off in the saved p


From: Florence
Subject: [Octave-bug-tracker] [bug #56137] Y-axis label is cut-off in the saved png file
Date: Mon, 15 Apr 2019 03:17:25 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

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

                 Summary: Y-axis label is cut-off in the saved png file
                 Project: GNU Octave
            Submitted by: fleuzi
            Submitted on: Mon 15 Apr 2019 07:17:23 AM UTC
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: fleuzi
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

I'm plotting data quality in a calendar with y-axis = time, colorbar = data
quality of measurements [0 1] and y-axis label = name of the measurement. When
I save the resulting figure directly as a .png file in the code, the y-axis
label is cut-off (see generated file "example.png").



close all
clear all

start  = datenum (2019, 4, 11, 12, 00);
time   = (start:7:start+99*7)';
y_name = {'Niveaumessung 1', 'Niveaumessung 2', 'Entleerungspumpe'};
data   = rand (100, 3);

figure (1);
colormap ('autumn');
nsp = size (data, 2);
for ii = 1:nsp
  subplot (nsp, 1, ii)
  imagesc (time, nsp-1, data(:, ii)', [0 1]);
 colorbar
 datetick ('x', 'mm-dd');
 set (gca, 'YTick', 2, 'YTickLabel', y_name{ii});
endfor
filename = 'example.png';
saveas (1, filename);





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 15 Apr 2019 07:17:23 AM UTC  Name: example.png  Size: 26KiB   By:
fleuzi

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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