Closed Hillard28 closed 2 years ago
This is because Mapbox uses WebGL to do rendering, which doesn't vectorize when we export. We've done our best to document this here https://plotly.com/python/static-image-export/#vector-formats-svg-and-pdf and here https://plotly.com/python/webgl-vs-svg/#webgl-limitations-and-tradeoffs :)
Ah, got it! I figured it must have been specific to Mapbox's rendering; bummer that there doesn't appear to be a way around it.
@Hillard28 I was having this same problem. The only way I found to go around it was to use directly the lower-level go.Choropleth. The plot in jupyter notebook becomes significantly larger and slower, but the final pdf image was vectorized and had really good quality
When building and exporting Mapbox choropleths with Plotly, the outputs appear blurry, even when using a vectorized format such as svg. This effects even the traces, though I could see why this might happen with the underlying map layer. The below code should be sufficient for generating a comparison. This problem does not occur when using the choropleth function.