Some differences between plotly ans pgfplots
We gather here some points that are different between a plotly figure and the corresponding TikZ figure generated with tikzplotly.
- Size of the objects: in plotly, the size is given in
pxunit, while in TikZ it is given inpt. A conversion is performed (1 px = 0.75 pt), but this still results in objects of different sizes. - By default, the colors or the markers are not the same in plotly and pgfplots. For instance, if nothing is specified, plotly will always use a dot marker, while pgfplot will change for each trace.
- The order of displaying the traces may be unconsistent between plotly and pgfplots. For instance, for this example, the two traces are inverted.
- The angle of rotation is different between Plotly and TikZ, but the function Plotly ↦ TikZ is not know at this current point.
- When tricky names are used in symbolic expression (such as names with a space within), the space is removed by tisk plotly (e.g. the text
United Kingdomin Plotly will be exported asUnitedKindgonin TikZ), fill free to update the exported file to render the figure you wish!