Wrap your spy call: "display(spy(...))" On Thursday, November 19, 2015, Ashley Kleinhans <[email protected]> wrote:
> I was wondering if someone could help me with a very basic question (as a > newbie on so many levels). I finally managed to get spy() working under > Gadfly, thanks to the good people at stack exchange. But I have to type > each line into terminal for it to pop up with a plot and even then I had to > be using Escher. > > I think I am misunderstanding how to plot using an editor, I like vim and > sublime, everything builds - but nothing shows. Am I looking at the wrong > editors? this is an example output: > > using Gadfly > M = sprand(300, 300, 0.1) # generate a sparse matrix with density 0.1 of > non-zeros > M = full(M) > spy(M) > > How do I make fancy plots using an editor? >
