简体   繁体   English

如何在没有 plotly 的情况下使用 python 以仪表形式的 plot 数据,因为我必须离线操作?

[英]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.我有数据需要 plot 作为量规/仪表。 I cannot use plotly as it works only online.我不能使用plotly因为它只能在线使用。

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.如果您只是将一个区域填充到给定的百分比,请查看broken_barh以获取水平仪表。 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)创建一个具有 y 限制 (0, 100) 和 x 限制 (0, 1) 的轴
  • draw a rectangle from (0, 0) to (value, 1)从 (0, 0) 到 (value, 1) 绘制一个矩形

If you want some more fancy stuff, I just found an example which seems to match the plotly style.如果您想要一些更花哨的东西,我刚刚找到了一个似乎与plotly风格相匹配的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在python中使用plotly绘制现有的矢量值? - How do I plot existing vector values using plotly in python? 如何使用python绘制彼此相邻的绘图仪表图? - How to plot plotly gauge charts next to each other with python? 如何从离线情节python jupyter笔记本中的选定点获取数据? - How do I get data from selected points in an offline plotly python jupyter notebook? 如何在仪表图表中旋转表盘? 使用python plotly - How to rotate the dial in a gauge chart? Using python plotly Plotly:如何在没有填充区域的情况下制作等高线图? - Plotly: How do I make a contour plot without the area filled? Python:如何为pandas DataFrame创建一个离线plotly的步骤plot? - Python: How to create a step plot with offline plotly for a pandas DataFrame? 如何使用 plotly 库 plot 而不会出现 ValueError? - How can I plot by using plotly library without getting ValueError? 如何在不在 iPython 笔记本中的离线模式下使用 plotly 进行绘图? - How to plot using plotly with offline mode out not in iPython notebooks? 如何 append 列表中的数据和 plot 它与 python Z26C592956DC26CA2AEF5DBACC204A30 - how to append a data at a list and plot it with python plotly Python Plotly Dash - 如何在不使用回调的情况下访问更新的组件值? - Python Plotly Dash - How do I access updated component value without using callback?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM