This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Greetings! Apologies on the delayed response. Unfortunately, `plot_symbol` does not currently support changing color like matplotlib's `scatter` function does. We currently have an open issue to add that capability: https://github.com/Unidata/MetPy/issues/706 Feel free to add your support on that issue. For now, the only work-around I can offer is to plot multiple station plots, where the data are segmented by the cloud coverage. I know that's not a particularly satisfying work around, though. Cheers, Ryan > Hi my name is Daniel Chacon from Costa Rica, I write to you looking for help > about using python to plot Metar Station Plots. > > > First of all, I followed your tutorial which is in this link > > https://unidata.github.io/MetPy/latest/examples/plots/Station_Plot.html > > > And all worked perfectly (by the way thank you so much for post this great > tutorials) until it came to me an idea of trying to plot the cloud coverage > with his respectively color (green, red,...) according to the actual flying > category which the airport to decide allowed to receive due to the current WX > at the moment (VFR, IFR, ....) , but then it was at this moment where the > problems started to appear cause I dont know how to plot the cloud coverage > with a specific color, I create a new column called FRColor which according > to the Flight Category column it puts a value from 1 to 4 in the row, then I > used this new column to create a dictionary and used the dictionary as the > color palette in the stationplot.plot_symbol function but it didnt work > because reading a lot saw that this procedure I wanted to do, It doesn`t get > along very well with matplotlib, could you please help me or maybe create a > new metppy video to explain this thing? > > I attach my jupiter notebook maybe you could give it a check, thanks > > Ticket Details =================== Ticket ID: ROU-186368 Department: Support Python Priority: Low Status: Open =================== 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.