plotly / plotly.py

The interactive graphing library for Python :sparkles: This project now includes Plotly Express!
https://plotly.com/python/
MIT License
16.28k stars 2.55k forks source link

How to remove x-axis if not has all colors #4081

Closed mvrpl closed 4 months ago

mvrpl commented 1 year ago

How to remove x-axis if not has all colors ?

I need to remove the X axes with values (Supermercado Pinheiro, Pague Menos, Hiper Select and Top da Ilha Supermercados).

Example

AaronStiff commented 1 year ago

Hi @mvrpl. I think maybe you could accomplish this by manually specifying which values you want ticks for using a combination of ticktext and tickvals.

An example: https://plotly.com/python/axes/#enumerated-ticks-with-tickvals-and-ticktext

In the docs: https://plotly.com/python/reference/bar/#bar-marker-colorbar-ticktext and https://plotly.com/python/reference/bar/#bar-marker-colorbar-tickvals

gvwilson commented 4 months ago

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for a while, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Alternatively, if it's a request for tech support, please post in our community forum. Thank you - @gvwilson