Closed wangjiawen2013 closed 2 months ago
Hi, thanks again for your interest in Plotpy.
The basic "design principle" of Plotpy is to have multiple functions to set the parameters of a plot instead of having a function with various parameters, as in Matplotlib. That's why we have things such as:
set_line_alpha
set_line_color
set_line_style
set_something...
Instead of:
plot(x, y, alpha=a, color=c, line_style=ls, ...)
The main "feature" of Plotpy is the GraphMaker
trait, which is implemented by Curve
, Contour
, Text
, etc. The Plot
structure can then generate the Python script. The Plot
structure also has many functions to configure the plot.
I have implemented the set_extra
function for most structures from version 1.7.
Hi, I want to add some scientific plots such as boxplot, violin plot, probality density plot and so on. So I wanna know more about the design principle of plotpy. There are a lot of parameters in matplotlib, it's hard to include all these parameters in plotpy, though many parameters are rarely used. I notice that there is a parameter called
extra
in barplot.rs:So we can set any parameters used in matplotlib barplot using
extra
. But not all structs in plotpy haveextra
. So could you tell about the parameter setting strategy and design principle of plotpy ? Then we can add plotting functions in consistent with your style as possible as we can.