示例#1
0
文件: Form1.cs 项目: JohnnyPP/OxyPlot
 void xAxisDateTime_AxisChanged(object sender, AxisChangedEventArgs e)
 {
     //PlotVariables.linearAxisY.Zoom(listdTemperature.Min(), listdTemperature.Max());
     //plot1.RefreshPlot(true);
 }
        /// <summary>
        /// Raises the AxisChanged event.
        /// </summary>
        /// <param name="args">
        /// The <see cref="OxyPlot.AxisChangedEventArgs"/> instance containing the event data.
        /// </param>
        protected virtual void OnAxisChanged(AxisChangedEventArgs args)
        {
            this.UpdateActualMaxMin();

            var handler = this.AxisChanged;
            if (handler != null)
            {
                handler(this, args);
            }
        }