6pure module function pb_get_bar_width(this) result(x)
7 class(plot_bar),
intent(in) :: this
13module subroutine pb_set_bar_width(this, x)
14 class(plot_bar),
intent(inout) :: this
15 real(real32),
intent(in) :: x
18 else if (x < 0.0)
then
26module function pb_get_cmd(this) result(x)
28 class(plot_bar),
intent(in) :: this
29 character(len = :),
allocatable :: x
32 type(string_builder) :: str
38 call str%append(new_line(
'a'))
39 call str%append(
"set boxwidth ")
40 call str%append(to_string(this%get_bar_width()))
41 call str%append(
" relative")
44 call str%append(this%plot_2d%get_command_string())
47 x = char(str%to_string())