Hi Seth,
First of all thanks for answering.
I have deleted the last reply cause it was a question that I have already
solved.
This is the code Im running, maybe it helps somebody as dummy as me :P
public void perform(Argument[] arg0, Context arg1) throws ExtensionException,
LogoException {
ExtensionContext ec = (ExtensionContext) arg1;
GUIWorkspace gw = (GUIWorkspace) ec.workspace();
PlotManager pm = (PlotManager) gw.plotManager();
Plot p = pm.currentPlot().get();
PlotPen pp = p.createPlotPen("one", false);
pp.mode_$eq(0);
p.addPen(pp);
p.currentPen_$eq(pp);
p.xMax_$eq(8);
pp.color_$eq(Color.Black());
pp.temporary_$eq(true);
pp.plot(1, 1);
pp.plot(2, 2);
gw.updatePlots(ec.nvmContext());
}
Sorry about my English and thanks again.
Marcos.
--
You received this message because you are subscribed to the Google Groups
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.