adding plot numticks option to plot(m,'b')#165
Conversation
krober10nd
commented
Dec 23, 2020
- ... for bathymetry plot type
plot(m,'b')
|
Do this work correctly? Should be numticks(1) -1 or numticks(1)? |
|
why would it be numticks -1 ? |
|
because the logaxis one is like that. if your ticks are 0-10 then you have 11 ticks but 10 colors. |
|
Yea, I think then |
|
Probably it is more intuitive to change to |
- adding a plotter subfuction used by a few of the case selects to streamline things - changing numticks option to 'colormap' to specify the colormap intervals - removing the mannings, cfval, ifric, tau0 fort13 options to use the arbitrary f13 attribute plotter instead - adding help for transect and sponge options
…ad of directory filename parts (one can add the directory of the files to path if necessary)
|
Hm...while we have this door open to improve the plotting api, I'd like to make a few suggestions:
vs.
should be
|
|
also, as always, I suggest that we modify the examples to reflect these plotting capabilities. The examples are what everyone looks at it. |
|
Okay, following up on my suggestions I made the API to msh.plot much simpler hopefully. Now everything is specified as name/value pairs so you don't need to remember the order or what not
and so on. I would suggest to change the kwarg |
|
Yeah I was thinking that same thing with those sorts of changes. So now we just need to modify the examples I guess? |
Yep |
…ut m_map projection
|
this looks like a good improvement. Are we ready to merge this in? |
|
Just modified the examples so I think we are ready now. Can you just test one on your end maybe? |
|
Okay, ran the majority of examples and didn't encounter any problems. However, for example Example_ECGC is not interpolating the bathymetry to the vertices correctly. I'm getting a result that shows the shelf is overland and past the shelf is underwater. Maybe somethings wrong with my SRTM download? The JBAY example appears to interpolate just fine. |
|
The GBAY example with the floodplain also works fine. |
|
Okay, it was a mistake on my part. I've tested all examples and they ran to completion and produced reasonable plots. |
adding plot numticks option to `plot(m,'b')` (CHLNDDEV#165)