NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Greetings! Ah. Yeah, matplotlib's contour code doesn't appreciate getting things with units. Glad you got it working! Ryan > uhm, > > in my code I had the following lines: > > > max_value = np.max(wind_kts) > print(f"Maximum wind speed {max_value}") > min_value = np.min(wind_kts) > print(f"Minimum wind speed {min_value}") > max = int(max_value.magnitude) > min = int(min_value.magnitude) > step = int((max - min)/10) > > > I wanted to guess at what my step levels should be for a contour plot, when I > used > max_value (see above) and min_value as (max_value - min_value)/10 > > I got an error, but when I used say max_value.magnitude I could do the math . > Ticket Details =================== Ticket ID: OFO-708651 Department: Support Python Priority: Low Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.