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

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

[Octave-bug-tracker] [bug #65904] copyobj figure missing legend markers


From: John
Subject: [Octave-bug-tracker] [bug #65904] copyobj figure missing legend markers
Date: Sat, 6 Jul 2024 03:47:43 -0400 (EDT)

Follow-up Comment #3, bug #65904 (group octave):

Thanks for the patch! This patch also fixed a bug in Octave version 9.2.0 that
the markers in the legend of a figure were not restored after saving the
figure to disk, then after opening the figure from disk, the markers were
missing! 

My 'minimal working example' that I was about to post was:

% Minimal Working Example, Save & Load figure has missing markers in the
legend 
close all; clear all
figure(1)
ph=plot([1 2],[1 1],'-',[1 2],[2 2],'x',[1 2],[3 3],'+',[1 2],[4 4],'.')
xlim([0 3])
ylim([0 5])

objh = legend({'line','cross x','plus +','dot .'})

% Save the figure to disk
savefig('missingmarkers.ofig')

% Open the figure that was just saved, but the markers in the legend are
missing!
openfig('missingmarkers.ofig')

If one were to inspect the Figures 1 and 2 from a non-patched version of
Octave 9.2.0, one would see that in Figure 1 the markers are shown in the
legend, but in Figure 2, after issuing the openfig(...) command, the markers
are missing. This patch fixed the issue. Thank you!



    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature


reply via email to

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