工业控制图表制作工具ProEssentials大家都比较熟悉吧,在科学计算、工业控制、金融统计等行业中 都有出色的表现, ProEssentials 7已经早早发售了,ProEssentials 8,已经在路上。今天开始,我们要为大家带来ProEssentials的动画演示,制作的版本是ProEssentials 8测试版(内测版本,暂时还未发售),我们提前来体验一下ProEssentials 8,看看是不是惊喜依旧。在演示中,我们还会提供相应图表的代码,方便大家实践操作。
今天我们先热热身,来看看用ProEssentials制作简单图表。
代码:
点击(此处)折叠或打开
- //! Right button click to show popup menu. //
- //! Double Click to show customization dialog. //
- //! Left-Click and drag to draw zoom box. Use popup memu or \'z\' to undo zoom. //
-
- // Simple example show the basics of a graph object. //
- // Graph\'s generally only contain YData because we assume
- // data is plotted equally spaced left to right.
-
- int s, p;
-
- // Enable Bar Glass Effect //
- Pego1.PePlot.Option.BarGlassEffect = true;
-
- // Enable Plotting style gradient and bevel features //
- Pego1.PePlot.Option.AreaGradientStyle = PlotGradientStyle.RadialBottomRight;
- Pego1.PePlot.Option.AreaBevelStyle = BevelStyle.MediumSmooth;
- Pego1.PePlot.Option.SplineGradientStyle = PlotGradientStyle.RadialBottomRight;
- Pego1.PePlot.Option.SplineBevelStyle = SplineBevelStyle.MediumSmooth;
-
- // v7.2 new features //
- Pego1.PePlot.Option.PointGradientStyle = PlotGradientStyle.VerticalAscentInverse;
- Pego1.PeColor.PointBorderColor = Color.FromArgb(100, 0, 0, 0);
- Pego1.PePlot.Option.LineSymbolThickness = 3;
- Pego1.PePlot.Option.AreaBorder = 1;
- Pego1.PeUserInterface.Dialog.AllowSvgExport = true;
-
- // Prepare images in memory //
- Pego1.PeConfigure.PrepareImages = true;
-
- // Pass Data //
- Pego1.PeData.Subsets = 4;
- Pego1.PeData.Points = 12;
-
- for(s = 0; s <= 3; s++)
- {
- for(p = 0; p < 12; p++)
- {
- Pego1.PeData.Y[s, p] = ((p + 1) * 50) + ((float)(Rand_Num.NextDouble()) * 250) + 2 + 700.0F - ((s * 140.0F));
- }
- }
-
- Pego1.PePlot.DataShadows = DataShadows.Shadows;
- Pego1.PeUserInterface.Allow.FocalRect = false;
- Pego1.PePlot.Method = GraphPlottingMethod.Area;
- Pego1.PeGrid.LineControl = GridLineControl.Both;
- Pego1.PeGrid.Style = GridStyle.Dot;
- Pego1.PePlot.Allow.Ribbon = true;
- Pego1.PeUserInterface.Allow.Zooming = AllowZooming.HorzAndVert;
- Pego1.PeUserInterface.Allow.ZoomStyle = ZoomStyle.Ro2Not;
-
- // Enable middle mouse dragging //
- Pego1.PeUserInterface.Scrollbar.MouseDraggingX = true;
- Pego1.PeUserInterface.Scrollbar.MouseDraggingY = true;
-
- Pego1.PeString.MainTitle = \
点击(此处)折叠或打开
- //! Right button click to show popup menu. //
- //! Double Click to show customization dialog. //
- //! Left-Click and drag to draw zoom box. Use popup memu or \'z\' to undo zoom. //
-
- // Simple example show the basics of a graph object. //
- // Graph\'s generally only contain YData because we assume
- // data is plotted equally spaced left to right.
-
- int s, p;
-
- // Enable Bar Glass Effect //
- Pego1.PePlot.Option.BarGlassEffect = true;
-
- // Enable Plotting style gradient and bevel features //
- Pego1.PePlot.Option.AreaGradientStyle = PlotGradientStyle.RadialBottomRight;
- Pego1.PePlot.Option.AreaBevelStyle = BevelStyle.MediumSmooth;
- Pego1.PePlot.Option.SplineGradientStyle = PlotGradientStyle.RadialBottomRight;
- Pego1.PePlot.Option.SplineBevelStyle = SplineBevelStyle.MediumSmooth;
-
- // v7.2 new features //
- Pego1.PePlot.Option.PointGradientStyle = PlotGradientStyle.VerticalAscentInverse;
- Pego1.PeColor.PointBorderColor = Color.FromArgb(100, 0, 0, 0);
- Pego1.PePlot.Option.LineSymbolThickness = 3;
- Pego1.PePlot.Option.AreaBorder = 1;
- Pego1.PeUserInterface.Dialog.AllowSvgExport = true;
-
- // Prepare images in memory //
- Pego1.PeConfigure.PrepareImages = true;
-
- // Pass Data //
- Pego1.PeData.Subsets = 4;
- Pego1.PeData.Points = 12;
-
- for(s = 0; s <= 3; s++)
- {
- for(p = 0; p < 12; p++)
- {
- Pego1.PeData.Y[s, p] = ((p + 1) * 50) + ((float)(Rand_Num.NextDouble()) * 250) + 2 + 700.0F - ((s * 140.0F));
- }
- }
-
- Pego1.PePlot.DataShadows = DataShadows.Shadows;
- Pego1.PeUserInterface.Allow.FocalRect = false;
- Pego1.PePlot.Method = GraphPlottingMethod.Area;
- Pego1.PeGrid.LineControl = GridLineControl.Both;
- Pego1.PeGrid.Style = GridStyle.Dot;
- Pego1.PePlot.Allow.Ribbon = true;
- Pego1.PeUserInterface.Allow.Zooming = AllowZooming.HorzAndVert;
- Pego1.PeUserInterface.Allow.ZoomStyle = ZoomStyle.Ro2Not;
-
- // Enable middle mouse dragging //
- Pego1.PeUserInterface.Scrollbar.MouseDraggingX = true;
- Pego1.PeUserInterface.Scrollbar.MouseDraggingY = true;
-
- Pego1.PeString.MainTitle = \
动画效果请访问:http://evget.com/article/2014/1/15/20408.html,图片制作:慧都控件网-走猫步的鱼
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29430037/viewspace-1073068/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29430037/viewspace-1073068/