Skip to content

Commit

Permalink
Plot size modifications
Browse files Browse the repository at this point in the history
Former-commit-id: 349c0d2
  • Loading branch information
loeiten committed Feb 28, 2017
1 parent 9b44427 commit 6581d46
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion celmaRC2/common/CELMAPy/PSD/plotPSD.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def plotSaveShowPSD2D(self):
"""

# Create the plot
fig = plt.figure(figsize = SizeMaker.standard(s=0.45))
fig = plt.figure(figsize = SizeMaker.standard(w=6, a=0.3))
ax = fig.add_subplot(111)

# Plot
Expand Down
16 changes: 9 additions & 7 deletions celmaRC2/common/CELMAPy/radialProfile/plotRadialProfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ def setData(self, profGrad):
self._gradLabel =\
self._gradLabelTemplate.\
format(pltVarName, **self.uc.conversionDict[self._varName])
self._gradAvgLabel =\
self._avgLabelTemplate.\
format(DDXPltVarName, **self.uc.conversionDict[self._varName])
if r"\mathrm{m}^{-3}\mathrm{m}^{-1}" in self._gradLabel:
self._gradLabel =\
self._gradLabel.replace(r"\mathrm{m}^{-3}\mathrm{m}^{-1}",\
r"\mathrm{m}^{-4}")

# Set the legends
self._varAvgLegend =\
Expand Down Expand Up @@ -350,7 +351,7 @@ def plotSaveShowPosOfFluct(self):
"""

# Create the plot
figSize = SizeMaker.standard(w=3, a=2)
figSize = SizeMaker.standard(w=2.5, a=1.25)
fig, axes =\
plt.subplots(nrows=4, figsize=figSize, sharex=True)
varAx, DDXVarAx, fluct1Ax, fluct2Ax = axes
Expand Down Expand Up @@ -382,9 +383,10 @@ def plotSaveShowPosOfFluct(self):
fluct2Ax.set_xlabel(self._xLabel)

# Make the plot look nice
self._ph.makePlotPretty(fluct1Ax, loc="lower right", ybins = 6)
self._ph.makePlotPretty(fluct2Ax, loc="lower right",\
rotation = 45, ybins = 6)
self._ph.makePlotPretty(varAx, ybins = 4)
self._ph.makePlotPretty(DDXVarAx, ybins = 4)
self._ph.makePlotPretty(fluct1Ax, ybins = 4)
self._ph.makePlotPretty(fluct2Ax, ybins = 4, rotation = 45)

# Set the title
varAx.set_title(self._title)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def plotSaveShowSkewnessKurtosis(self):
"""

# Create the plot
fig, ax = plt.subplots(figsize = SizeMaker.standard(w=4.0))
fig, ax = plt.subplots(figsize = SizeMaker.standard(w=4.0, a=0.5))

# Plot
ax.plot(self._rho, self._skew,\
Expand Down
2 changes: 1 addition & 1 deletion celmaRC2/common/CELMAPy/totalFlux/plotTotalFlux.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def plotSaveShowTotalFlux(self):
textPos = (0.96, 0.91)

# Create the plot
figSize = SizeMaker.array(1, 2, w = 6.3, aSingle = 0.7*0.7)
figSize = SizeMaker.standard(w=5, a=1)
fig, (elIonAx, perpAx) =\
plt.subplots(nrows=2, figsize=figSize, sharex=True)

Expand Down

0 comments on commit 6581d46

Please sign in to comment.