简体   繁体   中英

How to plot data in form of gauge using python without plotly as I have to do offline?

I have data that I need to plot as a gauge/meter. I cannot use plotly as it works only online.

What do you mean by a "gauge/meter". If you just to fill an area to a given percentage, take a look at broken_barh for an horizontal gauge. If you want a vertical one, you will have to do it yourself:

  • create an axis with y limits (0, 100) and x limits (0, 1)
  • draw a rectangle from (0, 0) to (value, 1)

If you want some more fancy stuff, I just found an example which seems to match the plotly style.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM