joa-quim / GMTjl_doc

Test place to a new GMT.jl documentation site
MIT License
0 stars 0 forks source link

docs: Add quick start examples #51

Closed adigitoleo closed 2 years ago

adigitoleo commented 2 years ago

Adds two quick start examples, one for “normal” plots and one for a map. Maybe the map example can be improved a bit later.

adigitoleo commented 2 years ago

Had to use the gmtend(show = true) to avoid missing output file errors like this one when testing locally, maybe this can be avoided?

adigitoleo commented 2 years ago

Hmm, subplot(:end) followed by gmtend(show = true) produces the missing file error, this was not happening without subplot(:end).

Edit: I'm just removing the gmtbegin/gmtend, it works fine without it.

With current GMT.jl master there seems to be a problem with the region = :global in the map inset.

adigitoleo commented 2 years ago

quickstart1 quickstart2

joa-quim commented 2 years ago

Ok, thanks for the examples and sorry for the lack of information. Some points:

joa-quim commented 2 years ago

With current GMT.jl master there seems to be a problem with the region = :global in the map inset.

Not, you need to end the inset with a inset(:end)

adigitoleo commented 2 years ago

Thanks for the info, I'll move it across. Not sure why the manifest file got commited, that was a mistake.

I was thinking that maybe it could be helpful to have a quick example right away on the front page, what do you think? I can move these to the other sections if you want, maybe there is a better example for the homepage?

joa-quim commented 2 years ago

With the examples tiles so visible in the main page I prefer not to have any quick first plot in the front page.