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

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

[Octave-bug-tracker] [bug #57260] scatter plot legend different from pre


From: Rik
Subject: [Octave-bug-tracker] [bug #57260] scatter plot legend different from previous releases
Date: Mon, 25 Nov 2019 19:05:16 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #2, bug #57260 (project octave):

This could be a good approach, as long as the writers of the scatter, stem, or
other hggroup objects don't need to know about the internals of legend.m.  I'm
worried that the phrase "add listeneres to target h_hggroup_obj object" may
not be clear enough to them to figure out what to do.

Maybe working through an example would help, and that example could be scatter
since it is the subject of this report.  How does the
__create_legend_item_fcn__ know how large to make the marker?  Even when the
marker is excessively large, Matlab enforces a maximum within the legend key. 
Sample code I used in to verify that assumption


clf;
x = randn (100, 1);
y = randn (100, 1);
h = scatter (x, y, "r");
title ("scatter() plot with red bubbles");
hl = legend ("Red Scatter");
set (h, 'linewidth', 2)
set (h, 'SizeData', 200)


It seems that enforcing this limitation, which would happen just once if done
in legend.m, now needs to be communicated to any programmer of a
__create_legend_item_fcn__ which means inevitably someone will make a mistake
and not include it.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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