sciapp / gr

GR framework: a graphics library for visualisation applications
Other
329 stars 54 forks source link

axes labels? #13

Closed bjarthur closed 5 years ago

bjarthur commented 9 years ago

i see titles3d, but how does one create labels for 2D plots? for example,

julia> using GR
julia> GR.plot(1:10.,1:10.)

then what? thanks.

jheinen commented 9 years ago

You can place text anywhere you want with the GR.text() function.

In the next major release, I will add more keyword arguments to the existing GR.plot() function and provide more convenience functions (in MATLAB-style).

bicycle1885 commented 8 years ago

Is there any way to print a text vertically? I'd like to print a label text for the Y-axis.

cfelder commented 8 years ago

Yes you can set a char up vector using

gr.setcharup(ux, uy)

Best Christian

Am 12.12.2015 um 23:01 schrieb Kenta Sato (佐藤 建太) notifications@github.com<mailto:notifications@github.com>:

Is there any way to print a text vertically? I'd like to print a label text for the Y-axis.

— Reply to this email directly or view it on GitHubhttps://github.com/jheinen/gr/issues/13#issuecomment-164196819.



Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,

Prof. Dr. Sebastian M. Schmidt


bicycle1885 commented 8 years ago

@cfelder Thank you for giving me great advice! setcharup(-1, 0) solved my problem (see "Price"): screen shot 2015-12-13 at 7 53 15

FlorianRhiem commented 5 years ago

We are closing this issue due to inactivity. Please reopen the issue and let us know if its cause still persists with the current version of GR.