legend_maxheight parameter came new in Plotly 6.3, which restricts max height of a legend.
I made a program that uses legend={…, “maxheight”: 0.2} somewhere in the code, and the program complains that plotly.graph_objects.layout.Legend should not get maxheight ;
Traceback (most recent call last):
File "tkinter\__init__.py", line 1968, in __call__
File "pokercraft_local\gui.py", line 514, in analyze_summary
File "pokercraft_local\export.py", line 64, in export_tourney_summary
File "pokercraft_local\visualize\tourney_summary.py", line 893, in plot_tournament_summaries
File "pokercraft_local\visualize\tourney_summary.py", line 197, in get_historical_charts_and_table
File "plotly\graph_objs\_figure.py", line 792, in update_layout
File "plotly\basedatatypes.py", line 1391, in update_layout
File "plotly\basedatatypes.py", line 5131, in update
File "plotly\basedatatypes.py", line 3913, in _perform_update
File "plotly\basedatatypes.py", line 3890, in _perform_update
ValueError: Invalid property specified for object of type plotly.graph_objs.layout.Legend: 'maxheight'
Which should not happen at all. The original code is here.
My program is running well on WSL Ubuntu, but this error happens on the Windows executable distribution with same code(built from Github CI), so I guess something went wrong on plotly PyPI distribution, but not sure. Following is a log from Github CI.
Run pip install -r requirements.txt
Collecting pandas==2.2.* (from -r requirements.txt (line 2))
Downloading pandas-2.2.3-cp312-cp312-win_amd64.whl.metadata (19 kB)
Collecting plotly==6.5.* (from -r requirements.txt (line 3))
Downloading plotly-6.5.0-py3-none-any.whl.metadata (8.5 kB)
The reason why I post this instead of Github issue is because I did not prepared well-formed bug report yet.