increase gr guide margins on 3d plots
This commit is contained in:
parent
7b8609ea1a
commit
6c8fb87635
@ -1437,7 +1437,7 @@ function gr_label_axis(sp, letter, viewport_plotarea)
|
|||||||
gr_set_font(guidefont(axis), sp)
|
gr_set_font(guidefont(axis), sp)
|
||||||
guide_position = axis[:guide_position]
|
guide_position = axis[:guide_position]
|
||||||
if isy
|
if isy
|
||||||
w = 0.02 + gr_axis_width(sp, axis)
|
w = 0.03 + gr_axis_width(sp, axis)
|
||||||
GR.setcharup(-1, 0)
|
GR.setcharup(-1, 0)
|
||||||
if guide_position == :right || (guide_position == :auto && axis[:mirror])
|
if guide_position == :right || (guide_position == :auto && axis[:mirror])
|
||||||
GR.settextalign(GR.TEXT_HALIGN_CENTER, GR.TEXT_VALIGN_BOTTOM)
|
GR.settextalign(GR.TEXT_HALIGN_CENTER, GR.TEXT_VALIGN_BOTTOM)
|
||||||
@ -1447,7 +1447,7 @@ function gr_label_axis(sp, letter, viewport_plotarea)
|
|||||||
gr_text(viewport_plotarea[1] - w, gr_view_ycenter(viewport_plotarea), axis[:guide])
|
gr_text(viewport_plotarea[1] - w, gr_view_ycenter(viewport_plotarea), axis[:guide])
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
h = 0.01 + gr_axis_height(sp, axis)
|
h = 0.015 + gr_axis_height(sp, axis)
|
||||||
if guide_position == :top || (guide_position == :auto && axis[:mirror])
|
if guide_position == :top || (guide_position == :auto && axis[:mirror])
|
||||||
GR.settextalign(GR.TEXT_HALIGN_CENTER, GR.TEXT_VALIGN_TOP)
|
GR.settextalign(GR.TEXT_HALIGN_CENTER, GR.TEXT_VALIGN_TOP)
|
||||||
gr_text(gr_view_xcenter(viewport_plotarea), viewport_plotarea[4] + h, axis[:guide])
|
gr_text(gr_view_xcenter(viewport_plotarea), viewport_plotarea[4] + h, axis[:guide])
|
||||||
@ -1492,7 +1492,7 @@ function gr_label_axis_3d(sp, letter)
|
|||||||
x_offset = letter === :x ? -h : h
|
x_offset = letter === :x ? -h : h
|
||||||
y_offset = -h
|
y_offset = -h
|
||||||
else
|
else
|
||||||
x_offset = -gr_axis_width(sp, ax)
|
x_offset = -0.03 - gr_axis_width(sp, ax)
|
||||||
y_offset = 0
|
y_offset = 0
|
||||||
end
|
end
|
||||||
letter === :z && GR.setcharup(-1, 0)
|
letter === :z && GR.setcharup(-1, 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user