[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #UGD-724183]: Surface plot declarative plotting questions



Greetings!

Apologies again for the vastly delayed reply. See my responses in-line below:

> First, ObsPlot().format must have something to convert from celsius to
> fahrenheit, but I can't seem to figure it out. Is there a way to see all
> the format options?

Actually, that looks like a pretty big oversight on our part. Right now the 
easiest way would probably be to convert your data. You can also pass a 
function to `format`, so you could define a function:

    fmt_fahren(v):
        return str(v * 1.8 + 32)

I don't consider either particularly satisfying, but that's how I'd approach it 
today (until we put something better in MetPy).

> Second, is there a way to zoom more into southern California using the
> MapPanel().area = 'ca'?

We want to add a way to zoom in on top of specifying with 'ca' with 'ca+', but 
that has not yet been implemented, see:

https://github.com/Unidata/MetPy/issues/1288

For now you can specify a tuple of (lon0, lon1, lat0, lat1)

> Third, is there a way to remove a bunch of the white space when I'm saving
> the plot? See the attached plot.

Sure:

    pc.save(bbox_inches='tight')

This syntax comes from matplotlib:

https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.savefig.html

> Finally, do you know when the
> https://thredds-test.unidata.ucar.edu/thredds/catalog/noaaport/text/metar/catalog.xml
> will be moved to the official thredds server? Or has that already been done?

There was not a formal plan in place but if that would be helpful, I can look 
at moving it over. 

Ryan

Ticket Details
===================
Ticket ID: UGD-724183
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.



pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy