We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f38da0 commit c365224Copy full SHA for c365224
plotly/tools.py
@@ -4562,10 +4562,12 @@ def _endpts_to_intervals(endpts):
4562
@staticmethod
4563
def _convert_to_RGB_255(colors):
4564
"""
4565
- Multiplies each element of a triplet by 255
+ Multiplies each element of a triplet by 255 and rounds to nearest int
4566
4567
4568
- return (colors[0]*255.0, colors[1]*255.0, colors[2]*255.0)
+ return (int(colors[0]*255.0),
4569
+ int(colors[1]*255.0),
4570
+ int(colors[2]*255.0))
4571
4572
4573
def _n_colors(lowcolor, highcolor, n_colors):
0 commit comments