Skip to content

Commit

Permalink
Fix up placement of y axis labels. For Ravel #487.
Browse files Browse the repository at this point in the history
  • Loading branch information
highperformancecoder committed Mar 19, 2024
1 parent 0c5d8f3 commit f2e6648
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classdesc
Submodule classdesc updated 1 files
+1 −4 function.h
4 changes: 2 additions & 2 deletions src/plot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ namespace ecolab
{
pango.setFontSize(0.6*lh);
pango.setMarkup(ylabel);
cairo_move_to(cairo,offx-0.48*width,0.5*pango.width());
cairo_move_to(cairo,offx-0.5*width+0.5*pango.height(),0.5*pango.width());
pango.angle=-0.5*M_PI;
pango.show();
}
Expand All @@ -597,7 +597,7 @@ namespace ecolab
{
pango.setFontSize(0.6*lh);
pango.setMarkup(y1label);
cairo_move_to(cairo,0.48*width-pango.height(),0.5*pango.width());
cairo_move_to(cairo,0.5*width-1.5*pango.height(),0.5*pango.width());
pango.show();
}
cairo_restore(cairo);
Expand Down

0 comments on commit f2e6648

Please sign in to comment.