4 ms·
>sine_wave.colors[::3] = "red" I never knew I needed this until now
by asangha 2y ago
>sine_wave.colors[::3] = "red"
I never knew I needed this until now
- deleted 2y ago[deleted]
- kushalkolar 2y agoWe offer a lot of ways to slice colors, set cmaps and cmap transforms, they are really useful in neuroscience: https://fastplotlib.org/ver/dev/_gallery/line/line_colorslice.html#sphx-glr-gallery-line-line-colorslice-py https://fastplotlib.org/ver/dev/_gallery/line/line_colorslic... https://fastplotlib.org/ver/dev/_gallery/line/line_cmap_more.html#sphx-glr-gallery-line-line-cmap-more-py https://fastplotlib.org/ver/dev/_gallery/line/line_cmap_more... https://fastplotlib.org/ver/dev/_gallery/line/line_cmap.html#sphx-glr-gallery-line-line-cmap-py https://fastplotlib.org/ver/dev/_gallery/line/line_cmap.html... And with collections if you want to go crazy: https://fastplotlib.org/ver/dev/_gallery/line_collection/line_collection_slicing.html#sphx-glr-gallery-line-collection-line-collection-slicing-py https://fastplotlib.org/ver/dev/_gallery/line_collection/lin...