Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added TextDontClip flag to hodograph text #246

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions sharppy/viz/hodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ def drawLCLtoEL_MW(self, qp):
mw_spd = tab.utils.KTS2MS(mw_spd)

mw_str = tab.utils.INT2STR(np.float64(self.mean_lcl_el_vec[0])) + '/' + tab.utils.INT2STR(mw_spd)
qp.drawText(mw_rect, QtCore.Qt.AlignCenter, mw_str)
qp.drawText(mw_rect, QtCore.Qt.TextDontClip | QtCore.Qt.AlignCenter, mw_str)

def drawCorfidi(self, qp):
'''
Expand Down Expand Up @@ -1141,8 +1141,8 @@ def drawCorfidi(self, qp):

up_stuff = tab.utils.INT2STR(np.float64(self.upshear[0])) + '/' + tab.utils.INT2STR(up_spd)
dn_stuff = tab.utils.INT2STR(np.float64(self.downshear[0])) + '/' + tab.utils.INT2STR(dn_spd)
qp.drawText(up_rect, QtCore.Qt.AlignCenter, "UP=" + up_stuff)
qp.drawText(dn_rect, QtCore.Qt.AlignCenter, "DN=" + dn_stuff)
qp.drawText(up_rect, QtCore.Qt.TextDontClip | QtCore.Qt.AlignCenter, "UP=" + up_stuff)
qp.drawText(dn_rect, QtCore.Qt.TextDontClip | QtCore.Qt.AlignCenter, "DN=" + dn_stuff)


def drawSMV(self, qp):
Expand Down Expand Up @@ -1234,8 +1234,8 @@ def drawSMV(self, qp):

rm_stuff = tab.utils.INT2STR(np.float64(self.bunkers_right_vec[0])) + '/' + tab.utils.INT2STR(rm_spd)
lm_stuff = tab.utils.INT2STR(np.float64(self.bunkers_left_vec[0])) + '/' + tab.utils.INT2STR(lm_spd)
qp.drawText(rm_rect, QtCore.Qt.AlignCenter, rm_stuff + " RM")
qp.drawText(lm_rect, QtCore.Qt.AlignCenter, lm_stuff + " LM")
qp.drawText(rm_rect, QtCore.Qt.TextDontClip | QtCore.Qt.AlignCenter, rm_stuff + " RM")
qp.drawText(lm_rect, QtCore.Qt.TextDontClip | QtCore.Qt.AlignCenter, lm_stuff + " LM")

def drawCriticalAngle(self, qp):
'''
Expand Down