Skip to content

Interactively hide or show lines after plot finished by clicking (without re-ploting like plot browser feature in MATLAB) #3715

@bluehope

Description

@bluehope

It would be great to have a feature to interactively hide or show certain lines after the plot is being finished.

When many lines of data exist (5 or more),
plot once and just by clicking to show or hide, similarly in plot browser of MATLAB, feature will be very useful.

Example of interactively hide or show cetain lines in MATLAB.

interactive_plot

This is one of killing feature in MATLAB. http://mathworks.com/help/matlab/ref/plotbrowser.html ### Example of interactively hide or show certain lines in Plotly

plotly_example

This feature would remove painful manual repeating job like below example.

Plot all

p = figure(title="simple line example", x_axis_label='x', y_axis_label='y')
plot(x, y[1,:])
plot(x, y[2,:])
plot(x, y[3,:])
plot(x, y[4,:])
plot(x, y[5,:])
plot(x, y[6,:])
...

remove data 2,3,5,6 & re-plot to compare between data 1,4

p = figure(title="simple line example", x_axis_label='x', y_axis_label='y')
plot(x, y[1,:])
#plot(x, y[2,:])
#plot(x, y[3,:])
plot(x, y[4,:])
#plot(x, y[5,:])
#plot(x, y[6,:])
...

remove data 3,4,5 & re-plot to compare between data 1,2,6. Keep repeating for bunch of datas

p = figure(title="simple line example", x_axis_label='x', y_axis_label='y')
plot(x, y[1,:])
plot(x, y[2,:])
#plot(x, y[3,:])
#plot(x, y[4,:])
#plot(x, y[5,:])
plot(x, y[6,:])
...

keep repeating...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions