| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,19 @@ | |||
| 1 | + # This style is used for the plot_types gallery. It is considered private. | ||
| 2 | + | ||
| 3 | + axes.grid: False | ||
| 4 | + axes.axisbelow: True | ||
| 5 | + | ||
| 6 | + figure.figsize: 2, 2 | ||
| 7 | + # make it so the axes labels don't show up. Obviously | ||
| 8 | + # not good style for any quantitative analysis: | ||
| 9 | + figure.subplot.left: 0.01 | ||
| 10 | + figure.subplot.right: 0.99 | ||
| 11 | + figure.subplot.bottom: 0.01 | ||
| 12 | + figure.subplot.top: 0.99 | ||
| 13 | + | ||
| 14 | + xtick.major.size: 0.0 | ||
| 15 | + ytick.major.size: 0.0 | ||
| 16 | + | ||
| 17 | + # colors: | ||
| 18 | + image.cmap : Blues | ||
| 19 | + # axes.prop_cycle: cycler('color', ['FF7F0E', '1F77B4', '2CA02C']) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - # from the Matplotlib cheatsheet as used in our gallery: | ||
| 1 | + # This style is used for the plot_types gallery. It is considered private. | ||
| 2 | 2 | ||
| 3 | 3 | axes.grid: True | |
| 4 | 4 | axes.axisbelow: True | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ | |||
| 8 | 8 | import matplotlib.pyplot as plt | |
| 9 | 9 | import numpy as np | |
| 10 | 10 | ||
| 11 | - plt.style.use('mpl_plot_gallery') | ||
| 11 | + plt.style.use('_mpl-gallery-nogrid') | ||
| 12 | 12 | ||
| 13 | 13 | # make data | |
| 14 | 14 | X, Y = np.meshgrid(np.linspace(-3, 3, 256), np.linspace(-3, 3, 256)) | |
@@ -17,7 +17,6 @@ | |||
| 17 | 17 | ||
| 18 | 18 | # plot | |
| 19 | 19 | fig, ax = plt.subplots() | |
| 20 | - ax.grid(False) | ||
| 21 | 20 | ||
| 22 | 21 | ax.contour(X, Y, Z, levels=levels) | |
| 23 | 22 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ | |||
| 8 | 8 | import matplotlib.pyplot as plt | |
| 9 | 9 | import numpy as np | |
| 10 | 10 | ||
| 11 | - plt.style.use('mpl_plot_gallery') | ||
| 11 | + plt.style.use('_mpl-gallery-nogrid') | ||
| 12 | 12 | ||
| 13 | 13 | # make data | |
| 14 | 14 | X, Y = np.meshgrid(np.linspace(-3, 3, 256), np.linspace(-3, 3, 256)) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ | |||
| 9 | 9 | import matplotlib.pyplot as plt | |
| 10 | 10 | import numpy as np | |
| 11 | 11 | ||
| 12 | - plt.style.use('mpl_plot_gallery') | ||
| 12 | + plt.style.use('_mpl-gallery-nogrid') | ||
| 13 | 13 | ||
| 14 | 14 | # make data | |
| 15 | 15 | X, Y = np.meshgrid(np.linspace(-3, 3, 256), np.linspace(-3, 3, 256)) | |
@@ -18,7 +18,6 @@ | |||
| 18 | 18 | ||
| 19 | 19 | # plot | |
| 20 | 20 | fig, ax = plt.subplots() | |
| 21 | - ax.grid(False) | ||
| 22 | 21 | ||
| 23 | 22 | ax.imshow(Z) | |
| 24 | 23 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ | |||
| 10 | 10 | import matplotlib.pyplot as plt | |
| 11 | 11 | import numpy as np | |
| 12 | 12 | ||
| 13 | - plt.style.use('mpl_plot_gallery') | ||
| 13 | + plt.style.use('_mpl-gallery-nogrid') | ||
| 14 | 14 | ||
| 15 | 15 | # make full-res data | |
| 16 | 16 | X, Y = np.meshgrid(np.linspace(-3, 3, 256), np.linspace(-3, 3, 256)) | |
@@ -26,7 +26,6 @@ | |||
| 26 | 26 | ||
| 27 | 27 | # plot | |
| 28 | 28 | fig, ax = plt.subplots() | |
| 29 | - ax.grid(False) | ||
| 30 | 29 | ||
| 31 | 30 | ax.pcolormesh(X, Y, Z, vmin=-0.5, vmax=1.0) | |
| 32 | 31 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ | |||
| 8 | 8 | import matplotlib.pyplot as plt | |
| 9 | 9 | import numpy as np | |
| 10 | 10 | ||
| 11 | - plt.style.use('mpl_plot_gallery') | ||
| 11 | + plt.style.use('_mpl-gallery') | ||
| 12 | 12 | ||
| 13 | 13 | # make data | |
| 14 | 14 | phi = np.linspace(0, 2 * np.pi, 8) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ | |||
| 8 | 8 | import matplotlib.pyplot as plt | |
| 9 | 9 | import numpy as np | |
| 10 | 10 | ||
| 11 | - plt.style.use('mpl_plot_gallery') | ||
| 11 | + plt.style.use('_mpl-gallery-nogrid') | ||
| 12 | 12 | ||
| 13 | 13 | # make a stream function: | |
| 14 | 14 | X, Y = np.meshgrid(np.linspace(-3, 3, 256), np.linspace(-3, 3, 256)) | |
@@ -19,7 +19,6 @@ | |||
| 19 | 19 | ||
| 20 | 20 | # plot: | |
| 21 | 21 | fig, ax = plt.subplots() | |
| 22 | - ax.grid(False) | ||
| 23 | 22 | ||
| 24 | 23 | # plot stream plot | |
| 25 | 24 | ax.streamplot(X[1:, 1:], Y[1:, 1:], U, V) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ | |||
| 7 | 7 | """ | |
| 8 | 8 | import matplotlib.pyplot as plt | |
| 9 | 9 | import numpy as np | |
| 10 | - plt.style.use('mpl_plot_gallery') | ||
| 10 | + plt.style.use('_mpl-gallery') | ||
| 11 | 11 | ||
| 12 | 12 | # make data: | |
| 13 | 13 | np.random.seed(3) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ | |||
| 8 | 8 | import matplotlib.pyplot as plt | |
| 9 | 9 | import numpy as np | |
| 10 | 10 | ||
| 11 | - plt.style.use('mpl_plot_gallery') | ||
| 11 | + plt.style.use('_mpl-gallery-nogrid') | ||
| 12 | 12 | ||
| 13 | 13 | ||
| 14 | 14 | # make data | |
| Back | FazBrowse Home | New Git URL |
0 commit comments