Skip to content

Commit

Permalink
Corrected bug with continuous color legends
Browse files Browse the repository at this point in the history
  • Loading branch information
piermorel committed Apr 18, 2016
1 parent 2a0db69 commit 5f28be3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gramm.m
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ function draw(obj,do_redraw)
text(2.5,ind_scale,num2str(max(max(obj.plot_lim.maxc))))];

obj.legend_text_handles=[obj.legend_text_handles...
text(2.5,ind_scale-ind_scale_step,num2str((max(max(obj.plot_lim.maxc))-min(min(obj.plot_lim.minc)))/2))];
text(2.5,ind_scale-ind_scale_step,num2str((max(max(obj.plot_lim.maxc))+min(min(obj.plot_lim.minc)))/2))];

obj.legend_text_handles=[obj.legend_text_handles...
text(2.5,ind_scale-ind_scale_step*2,num2str(min(min(obj.plot_lim.minc))))];
Expand Down
Binary file modified img/2D_densities_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/continuous_color_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5f28be3

Please sign in to comment.