Iām using pio.show(pie_fig) to plot my pie_fig. My version of plotly is 4.5.0. but color_discrete_map and opacity are not working when I use the documentation examples here:
Sorry about this! That argument should not be there, as indeed marker opacity is not supported in the underlying rendering systemā¦ Should be fixed in the next version: https://github.com/plotly/plotly.py/pull/2294
@nicolaskruchten I have no experience with plotly express I just pasted the code above in my notebook. After running, it was displayed that opacity is an invalid property. Then I typed help(px.pie) and opacity was listed as a pie attribute.
Thatās why I suggested to open an issue. Iām sorry!!!
@empet thereās nothing to apologize for! There is indeed a bug here: the opacity argument in px.pie should not be there and recommending to open an issue is the right thing to do
In this case I saw this post and opened a pull request immediately to save time but I donāt read as many forum posts as I would like so the āopen an issueā plan is always a safe bet!