Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Legend, error bars, 2nd y axis etc

Hello all,

Measurement Studio is a powerful program. But it's graphing functions need improvement. As a scientific tool, for example, the lack of plotting error bars in CWGraph is unforgivable. And many other essential functions for producing decent graphs are missing. So I attempted to try to fill in some gaps. The attached program intends to do following:

1) Plots x- and y error bars.
2) Legends for data sets,
3) Graph saving,
4) Graph printing

Notes:
1)Error bars are not plotted symmetrically. They can be improved.
2)Legends can be improved by making them automatically located in the empty part of the plotting area. And the routine doesn't work well for the logarithmic scale.
3)Since the point sizes are tied to line size, it is impossible to use larger symbols without increasing the size of the lines!
4)y axis and the 2nd axis labels as rotated have terrible looking fonts.
5)When printing to a pdf file, filename can be automatically set to a default filename so that a dialog box can be avoided.

I hope the attached program is useful.

Sincerely,

Cem

P.S.
The program plots 5 data sets. 4 of which use left y-axis, the last one uses the right axis. Only y error bars are plotted. (x error bars optional). The legend text appears on the left upper corner. User can enable/disable legend, lines connecting data points, error bars, and grid lines. When log axis is chosen, the legend placement is screwed up.
Message 1 of 2
(5,879 Views)
Thanks for sharing this with us Girit. I'm sure this will help out alot of people on the forum.

For your legend, this document provides another way you might be able to create a legend and not have to deal with finding an empty place on the graph.

Thanks again
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(5,872 Views)