来自文件读取的数据图 [英] data plot from file reading
本文介绍了来自文件读取的数据图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个MFC项目,现在数据生成为txt文件.文本文件中有两列.第一列将是x轴,第二列将是y轴.我想想像一下.所以我在上一个对话框中做了一个可视化按钮,然后当我单击该对话框时,我现在想知道我将如何读取生成的txt文件,然后如何绘制该文本,plz Emergency ans kinldy
解决方案
这与您发布 ^ ].如果您不了解从文件读取信息并在输出设备上绘制点,画线的基本知识,则需要返回学习指南和编程教程,并花一些时间来熟悉开发的这些方面. /blockquote>
以与将数据写入数组相反的方式读取数据(数组的类型取决于所使用的可视化实现).
CodeProject上有许多关于2D数据图形化可视化的文章.使用搜索功能 [高速图表控件 [ 解决方案
This is essentially the same question as you posted here[^]. If you do not understand the basics of reading information from a file and plotting points, drawing lines, on an output device then you need to go back to your study guides and programming tutorials and spend some time getting familiar with these aspects of development.
Read the data in the opposite way you have written them into arrays (type of arrays depends on the used visualization implementation).
There are many articles here on CodeProject about graphical visualization of 2D data. Use the search function[^].
One of my favorites is the High-speed Charting Control[^].
这篇关于来自文件读取的数据图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文