I have a plotly graph with more than 80 individual traces:
Now I want to export a png with only a few active traces like this:
But when I export the image with the plotly camera icon it shows the top of the legend and not the legend of the active traces:
My question is, is there a way to tell plotly to export the graph with only the active trace legends visible?
This is pretty interesting. If you use the approch described here , and run
fig.write_image("yourfile.png")
...then you'll get the original fig
object with all traces included. Even after subsetting the series through the legend.
But if you use the camera icon
on the toolbar, then you'll get the edited version as a .png
file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.