Plot Mirroring Tester

No preview image

1 collaborator

Uri_dolphin3 Uri Wilensky (Author)

Tags

(This model has yet to be categorized with any tags)
Model group CCL | Visible to everyone | Changeable by group members (CCL)
Model was written in NetLogo 4.1pre1 • Viewed 130 times • Downloaded 21 times • Run 0 times
Download the 'Plot Mirroring Tester' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


VERSION

$Id: Plot Mirroring Tester.nlogo 38184 2008-02-20 20:26:47Z everreau $

some simple plot mirroring tests.

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

globals [n plots pens]
turtles-own [user-id]

to startup
  setup
end 

to setup
  hubnet-set-client-interface "COMPUTER" []
  hubnet-reset
  ca
end 

to test-set-current-plot-pen [my-plot]
  set-current-plot my-plot
  clear-plot
  set-current-plot-pen "pen1"
  plotxy 0 0
  plotxy 50 50
  set-current-plot-pen "pen2"
  plotxy 0 50
  plotxy 50 0
end 

to test-plot-pen-reset
  set-current-plot "plot1"
  clear-plot
  set-current-plot-pen "pen1"
  set-plot-pen-color red
  plotxy 0 50
  plotxy 50 0
  plot-pen-reset
  plotxy 0 50
  plotxy 50 0
end 

to test-set-current-plot
  test-set-current-plot-pen "plot1"
  test-set-current-plot-pen "plot2"
end 

to test-plot-range
  set-current-plot "plot1"
  set-plot-x-range 25 50
  set-plot-y-range 25 50
end 

to test-autoplot-off
  set-current-plot "plot1"
  clear-plot
  auto-plot-off
  plotxy 10 10
  plotxy 500 10
end 

to test-autoplot-on
  auto-plot-on
  plotxy 501 50
end 

to test-temporary-plot-pen
  set-current-plot "plot1"
  create-temporary-plot-pen "new pen"
  set-current-plot-pen "new pen"
  set-plot-pen-color orange
  plotxy 50 50
  plotxy 0 0
end 

to test-histogram
  set-current-plot "plot1"
  clear-plot
  set-plot-pen-mode 1
  set-plot-x-range 0 10
  set-plot-y-range 0 10
  histogram [4 6 3 7 3 7 4 3 7 3 4 6 8 6 4 3 ]
end 

There are 2 versions of this model.

Uploaded by When Description Download
Uri Wilensky over 14 years ago Plot Mirroring Tester Download this version
Uri Wilensky over 14 years ago Plot Mirroring Tester Download this version

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.