LeviCC

Octave background image in plot

Nov 2nd, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.26 KB | None | 0 0
  1. % print background
  2. img=imread("lena.png");
  3. % you may scale the image size to fit with your plot...
  4. image(img);
  5.  
  6. % keep in the same figure
  7. hold on
  8.  
  9. % plot data ...
  10. plot(1:512);
  11. axis square
  12.  
  13. % print do a black backgound ... :(
  14. % print -dpng lena_plot.png
Advertisement
Add Comment
Please, Sign In to add comment