My Coding >
Programming language >
Python >
Python graphics >
Matplotlib >
Matplotlib Widgets >
How to remove red line in Matplotlib Slider
How to remove red line in Matplotlib SliderUsually, by default, Matplotlib Slider have tin red line at the initial value, which is convenient in many cases. But sometimes it is confusing, specially when you redefine sliders during work. And the question is – how to remove this thin red line. First of all, you can have a look at this video to see how this red line looks like. The standard way of coding Slider is:
In order to remove red line, it is easy to plot it with 0 thickness:
for horizontal Sliders (where the line is vertical), and
For vertical Sliders, where this thin red line is horizontal.
|
Last 10 artitles
9 popular artitles
|
|
© 2020 MyCoding.uk -My blog about coding and further learning. This blog was writen with pure Perl and front-end output was performed with TemplateToolkit. |