summaryrefslogtreecommitdiffstats
path: root/demo_plot.py
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2013-04-04 14:20:48 +0200
committerVolker Hoffmann <volker@cheleb.net>2013-04-04 14:20:48 +0200
commita4e7e743ee35403f70e613c87679b46164b3bf04 (patch)
tree5e9807ea40cc4ebd6d24b699ed73c5d1c97aa39d /demo_plot.py
parentbe58789ce49ea4394102c883900ad1b7ef5f3191 (diff)
figure size demo; save demo figure
Diffstat (limited to 'demo_plot.py')
-rw-r--r--demo_plot.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/demo_plot.py b/demo_plot.py
index ba5f60f..e9fdfe3 100644
--- a/demo_plot.py
+++ b/demo_plot.py
@@ -12,7 +12,10 @@ disk.plot_rho_xy()
# disk.plot_Q_r()
# Plot on Custom Axis
-fig = plt.figure()
+# fig = plt.figure() # 1x1 (Default)
+# fig = plt.figure(figsize=(8.0, 6.0)) # 1x1 (Default)
+# fig = plt.figure(figsize=(16.0, 6.0)) # 1x2
+fig = plt.figure(figsize=(16.0, 12.0)) # 2x2
ax1 = fig.add_subplot(2,2,1)
ax2 = fig.add_subplot(2,2,2)
ax3 = fig.add_subplot(2,2,3)
@@ -21,4 +24,5 @@ disk.plot_rho_r(ax1)
disk.plot_rho_xy(ax2)
disk.plot_Q_xy(ax3)
disk.plot_Q_r(ax4)
+plt.savefig('DemoFig.pdf')
plt.show()