@@ -676,11 +676,11 @@ end subroutine add_sphere
676
676
!
677
677
! Add a bar plot.
678
678
679
- subroutine add_bar (me , left , height , label , width , bottom , color , &
679
+ subroutine add_bar (me , x , height , label , width , bottom , color , &
680
680
yerr , align , xlim , ylim , xscale , yscale , istat )
681
681
682
682
class(pyplot), intent (inout ) :: me ! ! pyplot handler
683
- real (wp), dimension (:), intent (in ) :: left ! ! left bar values
683
+ real (wp), dimension (:), intent (in ) :: x ! ! x bar values
684
684
real (wp), dimension (:), intent (in ) :: height ! ! height bar values
685
685
character (len=* ), intent (in ) :: label ! ! plot label
686
686
real (wp), dimension (:), intent (in ), optional :: width ! ! width values
@@ -717,7 +717,7 @@ subroutine add_bar(me, left, height, label, width, bottom, color, &
717
717
if (present (ylim)) call vec_to_string(ylim, me% real_fmt, ylimstr, me% use_numpy)
718
718
719
719
! convert the arrays to strings:
720
- call vec_to_string(left, me% real_fmt, xstr, me% use_numpy)
720
+ call vec_to_string(x, me% real_fmt, xstr, me% use_numpy)
721
721
call vec_to_string(height, me% real_fmt, ystr, me% use_numpy)
722
722
if (present (width)) call vec_to_string(width, me% real_fmt, wstr, me% use_numpy)
723
723
if (present (bottom)) call vec_to_string(bottom, me% real_fmt, bstr, me% use_numpy)
@@ -733,7 +733,7 @@ subroutine add_bar(me, left, height, label, width, bottom, color, &
733
733
734
734
! create the plot string:
735
735
plt_str = ' ax.bar(' // &
736
- ' left =' // trim (xname)// ' ,' // &
736
+ ' x =' // trim (xname)// ' ,' // &
737
737
' height=' // trim (yname)// ' ,'
738
738
if (present (yerr)) plt_str= plt_str// ' yerr=' // trim (yerrname)// ' ,'
739
739
if (present (width)) plt_str= plt_str// ' width=' // trim (wname)// ' ,'
0 commit comments