[Scilab-users] plotplots() in Scilab

Antoine Monmayrant antoine.monmayrant at laas.fr
Fri Apr 2 14:49:53 CEST 2021


On 02/04/2021 12:16, CRETE Denis wrote:
>
> Hello,
>
> I am also in favour of including this function in Scilab, with an 
> “improved” name. However, as far as I know, an inset has very 
> frequently its own pair of axes, as opposed to a ticks-switching in 
> (only one of) the axes. Thus, I would not recommend a name with 
> “inset” and reserve it for a function more closely implementing an inset.
>
> Zoom is quite appealing.
>
> I was wondering about “non-linear”_something…
>
Hello Denis,

I'm with you here: this should be included, but the name is not well 
matching the features of the function.
Indeed, 'inset' is not at all what 'plot_plot' is offering.
I was also thinking about "non-linear-axis" or something like that, but 
I am not sure such a name will improve discoverability of the function.
But you are right: this is about having non-regular or non-linear axis.

nonlinear-plot ? non-regular-plot ? All this is not convincing for me...

By the way, we have developed some ugly hacks in the past to get 
'non-linear' or 'non-regular' colormaps for the same reason than Samuel.
The idea was to rescale the data to Sgrayplot such that one could map 
exact intermediate Z_values to some colors of existing or new colormap:

[0, 0.1, 1, 2, 100] -> [black, red, orange, yellow, white]

One of the key advantage is that you could be sure that a certain value 
(like z=0) was exactly corresponding to a certain color (like white) 
which is sometime necessary (for plotting  asymmetric waves or fields 
with a red-white-blue colormap for example).

Antoine

> Thank you for your developments
>
> Denis
>
> *De :*users <users-bounces at lists.scilab.org> *De la part de* Clément David
> *Envoyé :* vendredi 2 avril 2021 11:20
> *À :* sgougeon at free.fr; Users mailing list for Scilab 
> <users at lists.scilab.org>
> *Objet :* Re: [Scilab-users] plotplots() in Scilab
>
> Hello Samuel, hello all,
>
> First thanks for the request for inclusion, that’s always good to have 
> more features into Scilab itself. However, I have a few remarks 
> regarding this function.
>
> 1.The function name plotplots() does not seem well known nor easy to 
> find ; after a few research I found similar behavior for Matlab and 
> Matplotlib worded as “zoomed” or “zoomed_inset_axes” which better 
> represent the behavior.
>
> ·https://stackoverflow.com/questions/13583153/how-to-zoomed-a-portion-of-image-and-insert-in-the-same-plot-in-matplotlib
>
> ·https://fr.mathworks.com/matlabcentral/fileexchange/59857-zoomplot
>
> ·https://fr.mathworks.com/matlabcentral/answers/349042-zoomed-plot-in-the-same-figure
>
> What about using `plot_zoomed()`, `plot_inset()` or `plot_inside()` ?
>
> 2.I found the need to have a second axe (example 1) different to 
> recompute ticks (example 2). I might have miss something, could you 
> clarify these two usage ?
>
> Thanks,
>
> Clément
>
> *From:*users <users-bounces at lists.scilab.org 
> <mailto:users-bounces at lists.scilab.org>> *On Behalf Of *Samuel Gougeon
> *Sent:* Thursday, April 1, 2021 10:07 PM
> *To:* International users mailing list for Scilab. 
> <users at lists.scilab.org <mailto:users at lists.scilab.org>>
> *Subject:* [Scilab-users] plotplots() in Scilab
>
> Dear all,
>
> I would like to propose to include the plotplots() graphical function 
> into Scilab.
>
> For now 3 years, plotplots() is distributed alone in its own external 
> module <https://atoms.scilab.org/toolboxes/plotplots>, with a fair 
> number of downloads for a single function.
>
> Its embedded documentation is as well provided online as PDF, in 
> english 
> <https://atoms.scilab.org/toolboxes/plotplots/2.0/files/plotplots_en_US.pdf>and 
> in french 
> <https://atoms.scilab.org/toolboxes/plotplots/2.0/files/plotplots_fr_FR.pdf>.
>
> As soon as a function has a local singularity or/and an asymptotical 
> behavior (that's quite common), plotplots() is very helpful to 
> illustrate its specific behaviors without masking more "regular" 
> features with a crushing graphical scale.
>
> Every comment is welcome about the current plotplots status, and about 
> the proposal to include it as a native Scilab function.
>
>
> Hope reading you,
>
> Best regards
>
> Samuel
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210402/5cc2e1f2/attachment.htm>


More information about the users mailing list