You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If user sets the axis limits before drawing the special lines, the lines are drawn far below the normal plotting range and would not appear on the plot. Example:
This works:
# Create a new figure. The dimensions here give a good aspect ratiofig=plt.figure(figsize=(9, 9))
skew=SkewT(fig)
# Plot the data using normal plotting functions, in this case using# log scaling in Y, as dictated by the typical meteorological plotskew.plot(p, T, 'r', linewidth=2)
skew.plot(p, Td, 'g', linewidth=2)
skew.plot_barbs(p, u, v)
# Set axis limitsskew.ax.set_ylim(1000, 100)
skew.ax.set_xlim(-40, 60)
# Calculate full parcel profile and add to plot as black lineprof=parcel_profile(p, T[0], Td[0]).to('degC')
skew.plot(p, prof, 'k', linewidth=1)
# Add the relevant special linesskew.plot_dry_adiabats()
skew.plot_moist_adiabats()
skew.plot_mixing_lines()
This does not:
# Create a new figure. The dimensions here give a good aspect ratiofig=plt.figure(figsize=(9, 9))
skew=SkewT(fig)
# Plot the data using normal plotting functions, in this case using# log scaling in Y, as dictated by the typical meteorological plotskew.plot(p, T, 'r', linewidth=2)
skew.plot(p, Td, 'g', linewidth=2)
skew.plot_barbs(p, u, v)
# Calculate full parcel profile and add to plot as black lineprof=parcel_profile(p, T[0], Td[0]).to('degC')
skew.plot(p, prof, 'k', linewidth=1)
# Add the relevant special linesskew.plot_dry_adiabats()
skew.plot_moist_adiabats()
skew.plot_mixing_lines()
# Set axis limitsskew.ax.set_ylim(1000, 100)
skew.ax.set_xlim(-40, 60)
The text was updated successfully, but these errors were encountered:
If user sets the axis limits before drawing the special lines, the lines are drawn far below the normal plotting range and would not appear on the plot. Example:
This works:
This does not:
The text was updated successfully, but these errors were encountered: