Skip to content

Commit

Permalink
Merge pull request #449 from NCAR/unpin_mpl
Browse files Browse the repository at this point in the history
Unpin matplotlib version
  • Loading branch information
Heather Craker committed Jun 22, 2022
2 parents 83a98ef + eccd6a4 commit 00f314b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-latest"]
python-version: [ "3.7", "3.9" ]
python-version: [ "3.7", "3.8", "3.9", "3.10" ]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Gallery/Contours/NCL_coneff_8.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
(-45, 69500), (-40, 34000), (-12, 39000), (-37, 75000), (40, 50000),
(-25, 42000), (18, 23000), (30, 40000), (45, 40000), (57, 41000),
(63, 39000), (55, 80000), (65, 85000)]
clabels = ax1.clabel(p,
clabels = ax1.clabel(contours,
levels=np.arange(0, 25, 8),
fontsize=12,
colors="black",
Expand Down
6 changes: 2 additions & 4 deletions Gallery/Contours/NCL_lb_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,8 @@
pad=0.11,
extendrect=True,
extendfrac='auto')
# Make colorbar tick labels larger
cbar.ax.tick_params(labelsize=14)
# Rotate colorbar tick labels
cbar.ax.set_xticklabels(cbar.ax.get_xticklabels(), rotation=45)
# Make colorbar tick labels larger and rotate them
cbar.ax.tick_params(labelsize=14, rotation=45)
# Format colorbar title, this will make the title appear above the colorbar
cbar.ax.set_title('Default position for color bar title', fontsize=10)
plt.show()
4 changes: 2 additions & 2 deletions Gallery/XY/NCL_tm_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
ax1.yaxis.set_minor_locator(MultipleLocator(0.5))

# Add a descriptive string to the top left corner of the plot.
ax1.text(0.01, 1.1, spacingString, transform=ax1.transAxes, fontWeight='bold')
ax1.text(0.01, 1.1, spacingString, transform=ax1.transAxes, fontweight='bold')

# Plot data and set the X axis limits.
plt.plot(x_data, y_data, color='black', linewidth=0.5)
Expand Down Expand Up @@ -109,7 +109,7 @@
1.1,
"Ticks Set Explicitly",
transform=ax2.transAxes,
fontWeight='bold')
fontweight='bold')

# Line-plot data
plt.plot(x_data, y_data, color='black', linewidth=0.5)
Expand Down
2 changes: 1 addition & 1 deletion conda_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
- jupyter
- jupyterlab
- make
- matplotlib=3.3.0
- matplotlib
- metpy
- mock
- nbsphinx
Expand Down

0 comments on commit 00f314b

Please sign in to comment.