Left align yaxis label

tina_free_vwap
Tyler Goodlet 2020-12-09 08:53:09 -05:00
parent c18a37c75b
commit 5b8e72065a
1 changed files with 5 additions and 5 deletions

View File

@ -38,7 +38,7 @@ class Axis(pg.AxisItem):
def __init__(
self,
linked_charts,
typical_max_str: str = '100 000.00',
typical_max_str: str = '100 000.000',
min_tick: int = 2,
**kwargs
) -> None:
@ -116,7 +116,7 @@ class DynamicDateAxis(Axis):
indexes: List[int],
) -> List[str]:
bars = self.linked_charts.chart._array
bars = self.linked_charts.chart._ohlc
bars_len = len(bars)
times = bars['time']
@ -267,8 +267,8 @@ class YAxisLabel(AxisLabel):
_h_margin = 2
text_flags = (
# QtCore.Qt.AlignLeft
QtCore.Qt.AlignHCenter
QtCore.Qt.AlignLeft
# QtCore.Qt.AlignHCenter
| QtCore.Qt.AlignVCenter
| QtCore.Qt.TextDontClip
)