如何在一个网页中显示 2 个图表 (PERL)
我对 Perl 完全陌生,我不确定我是否能正确表达我的问题,所以如果需要任何澄清,请回复。
所以我有一个 Perl 脚本,可以很好地绘制图表。唯一的问题是,我一次只能通过注释掉绘制另一张图表的线来绘制一张图表。
两个图表应绘制在同一网页上。如果这是不可能的,那么至少我可以让用户选择他们想要首先查看的图表的链接.. 返回.. 然后选择另一个链接!只是一种让两个图都可访问的方法...
很难复制粘贴代码,因为我使用命令提示符来编辑脚本。 我目前正在使用“SimpleErrorBars”来绘制第一个图,并使用“Chart::Points”来绘制另一个图。由于脚本是从网页调用的,所以我使用“cgi_png()”来绘图(即不绘制到外部图像)
Perl 中是否有模块允许在同一网页上绘制多个图形?或者还有其他建议吗??
先感谢您!
I am completelyy new to perl and i am not sure if I'll phrase my question right so please reply if any clarification needed.
So I have a perl script that works just fine in plotting charts. The only issue is that I can only plot one chart at a time by commenting out the line that plots the other chart.
Both charts should be plotted on the same webpage. If this is impossible, then at least i could have the user choose a link to which chart they want to see first.. Go back.. Then choose the other link! Just a way to have both plots accessible...
Its hard to copy paste the code in since I am using command prompt to edit the script.
I am currently using "SimpleErrorBars" to plot the first graph and "Chart::Points" to plot the other. Since the script is called from a webpage, I use "cgi_png()" to plot (i.e not plotting to an external image)
Is there a module to in perl to allow plotting multiple graphs on same webpage? Or any other suggestions??
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不明白为什么同一页面上没有两个单独的图表。由于每个图都是一个图像,因此页面上只有两个元素,每个元素调用一个 CGI 程序来生成一个图像。
I don't understand why you don't have two separate graphs on the same page. As each graph is an image, just have two elements on the page, each of which calls a CGI program to generate one image.