帮我个忙? [英] do me a favor?

查看:50
本文介绍了帮我个忙?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计:


我的样本数据如下所示(制表符分隔):


教育性经验工资

10 1 5 10

5 1 10 9

15 0 10 15


目前我正在做一个项目这将需要Python / Tk以及用于图像处理和可视化的VTK(可视化工具包)。


我想在x轴中绘制一个变量,在y轴中绘制一个变量轴和颜色由变量之一


我认为将数据读入python数组可能是一个好主意(例如,每条记录分为行,列中的属性)然后使用for循环找到每个点的位置并给它们上色。


有谁可以帮我这个大忙?给我一些建议,谢谢: - )

解决方案

我不知道VTK是否内置了绘图功能,所以...

我还没有进入它,但我打算使用sciPy来满足我的数据绘图需求。是的,你必须学习一个新包装,但你不必编写绘图功能。


你好:


我有关于如何在此项目中创建组合框(或列表框)的另一个问题。如果你知道的话,请帮助我.-)


谢谢


展开 | 选择 | Wrap | 行号

Hi folks:

my sample data looks like following( tab-delimited):

Education Sex Experience Wage
10 1 5 10
5 1 10 9
15 0 10 15

Currently I am doing a project that will need Python/Tk as well as VTK(Visualization Toolkit) for image processing and visualization.

I want to plot one of variable in x-axes and one of variable in y-axes, and color by one of variables

I thought it may be a good idea to read data into python array (eg. each record into rows, attributes in columns) and then use a for loop to find the position of each points and color them.

Can anyone do me this big favour? give me some advices, thanks:-)

解决方案

I don''t know if VTK has plotting functions built in, so...
I haven''t gotten into it yet, but I''m planning on using sciPy for my data plotting needs. Yes, you have to learn a new package, but you don''t have to write plotting functions.


hi there:

I have another question about how to create a combo box (or listbox) in this project. can you help me please if you know :-)

Thanks


Expand|Select|Wrap|Line Numbers


这篇关于帮我个忙?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆