我可以控制Netlogo图中点的大小和形状吗?

发布于 2025-02-14 00:48:04 字数 95 浏览 4 评论 0原文

我知道如何通过选择绘图模式为2来获取Netlogo中的点图。这样做可以提供带有微小点的情节。在其他编程环境中,我可以选择标记大小和形状以及颜色。这可以在Netlogo中完成吗?

I know how to get a point plot in netlogo by choosing plot-pen-mode to be 2. Doing this gives a plot with tiny dots. In other programming environments, I can choose the marker size and shape as well as the color. Can this be done in netlogo?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你丑哭了我 2025-02-21 00:48:04

据我所知,你不能。 Netlogo中的图可以让您快速了解数据的外观,但是要进一步处理,您需要导出数据并使用另一个程序。导出数据的一种简单方法是使用文件开放,文件类型和文件印刷来创建CSV文件。

to initiate-output
  
  if file-exists? "output-file.csv" [ file-delete "output-file.csv" ] 
  ;Make sure to start with an empty file
  
  file-open "output-file.csv"
  
  file-type "x-value," ;use file-type and a comma to stay on the same line
  file-print "y-value" ;use file-print at the end of the line      
  file-close
  
end


to generate-output
  
  let x random 10
  let y random 10
  
  file-open "output-file.csv"
  
  file-type word x "," ;use file-type and a comma to stay on the same line
  file-print y ;use file-print at the end of the line     
  
  file-close
  
end

As far as I know, you can't. The plots in Netlogo can give you a quick look at what the data looks like but for further handling, you will need to export the data and use another program. A simple way for exporting data is using file-open, file-type and file-print to create a csv file.

to initiate-output
  
  if file-exists? "output-file.csv" [ file-delete "output-file.csv" ] 
  ;Make sure to start with an empty file
  
  file-open "output-file.csv"
  
  file-type "x-value," ;use file-type and a comma to stay on the same line
  file-print "y-value" ;use file-print at the end of the line      
  file-close
  
end


to generate-output
  
  let x random 10
  let y random 10
  
  file-open "output-file.csv"
  
  file-type word x "," ;use file-type and a comma to stay on the same line
  file-print y ;use file-print at the end of the line     
  
  file-close
  
end
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文