Skip to content

Commit

Permalink
Reduced annotated text font size
Browse files Browse the repository at this point in the history
  • Loading branch information
gedeschaines committed Dec 28, 2023
1 parent 0534037 commit c3ee855
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 6 additions & 6 deletions draw3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@ def __init__(self, txyzFile="TXYZ.OUT", mslType=1, w=600, h=600,
'PHt' :"PHt= %8.3f"}

self.TextCoords = {'time':(10,12), 'zoom':(10,24),
'Xm' :(120,12), 'Ym' :(120,24), 'Zm' :(120,36),
'PSm':(230,12), 'THm':(230,24), 'PHm':(230,36),
'Xt' :(340,12), 'Yt' :(340,24), 'Zt' :(340,36),
'PSt':(450,12), 'THt':(450,24), 'PHt':(450,36)}
'Xm' :(90,12), 'Ym' :(90,24), 'Zm' :(90,36),
'PSm':(170,12), 'THm':(170,24), 'PHm':(170,36),
'Xt' :(250,12), 'Yt' :(250,24), 'Zt' :(250,36),
'PSt':(330,12), 'THt':(330,24), 'PHt':(330,36)}


def setFOVsfacs(self):
Expand Down Expand Up @@ -461,7 +461,7 @@ def XfrmGrid(self):
xd = self.GridPt1[k].X - self.fovpt.X
yd = self.GridPt1[k].Y - self.fovpt.Y
zd = self.GridPt1[k].Z - self.fovpt.Z
# Rotate coordinated into viewport reference frame.
# Rotate coordinates into viewport reference frame.
xs = self.dcx1*xd + self.dcy1*yd + self.dcz1*zd
ys = self.dcx2*xd + self.dcy2*yd + self.dcz2*zd
zs = self.dcx3*xd + self.dcy3*yd + self.dcz3*zd
Expand Down Expand Up @@ -974,7 +974,7 @@ def AnnotateText(self, text, valnum):
#backgroundcolor=Colors[Black],
color=Colors[Black],
fontname='monospace',
fontsize='small',
fontsize='x-small',
ha="left",
va="top",
animated=False,
Expand Down
8 changes: 5 additions & 3 deletions pyThreeD.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def onClick(event):

# Instantiate a matplotlib pyplot figure.

#fig = plt.figure(figsize=(6.0,6.0), dpi=100.0) # 465x462 viewport
fig = plt.figure(figsize=(8.0,6.0), dpi=100.0) # 620x462 viewport
fig = plt.figure(figsize=(6.0,6.0), dpi=100.0) # 465x462 viewport
#fig = plt.figure(figsize=(8.0,6.0), dpi=100.0) # 620x462 viewport
#fig = plt.figure(figsize=(8.0,8.0), dpi=100.0) # 620x616 viewport
#fig = plt.figure(figsize=(7.74,7.78), dpi=100.0) # 600x599 viewport
#fig = plt.figure(figsize=(10.0,8.0), dpi=100.0) # 775x616 viewport
Expand Down Expand Up @@ -155,7 +155,9 @@ def onClick(event):
print("Press Right Arrow key to speed animation up by 50 msec increments.")
print("Press Space key to toggle pause/unpause.")
print("Press X key to exit animation (press a mouse button to restart).")
print("Press Esc key to exit program.")
print("Press Q key to close figure (should only press after X key press).")
print("Press Esc key to exit program (should only press before X key press).")


plt.show(block=True)

Expand Down

0 comments on commit c3ee855

Please sign in to comment.