Remove obsolete file.
↧
Source code checked in, #d234aef53fc4
↧
Commented Unassigned: OxyMouseEventArgs.ClickCount is not being set [10152]
Trying to get an event that only fires on double-click working but ClickCount is always 0. Checked the source and looks like the ClickCount is not being set.
Comments: I have deleted the obsolete file. The ClickCount property is in the `OxyMouseDownEventArgs`. It is implemented for WPF, but may not be implemented on all other platforms.
Comments: I have deleted the obsolete file. The ClickCount property is in the `OxyMouseDownEventArgs`. It is implemented for WPF, but may not be implemented on all other platforms.
↧
↧
Commented Unassigned: oxyplot - 2014.1.245.1 get_ActualFont Error [10157]
Hi All,
After updating to new version of oxyplot, I am getting below error. Could you please help me to resolve this. Attached sample code.
__<package id="OxyPlot.Core" version="2014.1.245.1" targetFramework="net40" />
<package id="OxyPlot.Wpf" version="2014.1.245.1" targetFramework="net40" />__
Object reference not set to an instance of an object.
at OxyPlot.PlotElement.get_ActualFont() in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotElement.cs:line 106
at OxyPlot.Axes.Axis.Measure(IRenderContext rc) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\Axes\Axis.cs:line 985
at OxyPlot.PlotModel.MaxSizeOfPositionTier(IRenderContext rc, IEnumerable1 axesOfPositionTier) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 174
at OxyPlot.PlotModel.AdjustAxesPositions(IRenderContext rc, IList1 parallelAxes) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 249
at OxyPlot.PlotModel.AdjustPlotMargins(IRenderContext rc) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 212
at OxyPlot.PlotModel.Render(IRenderContext rc, Double width, Double height) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 76
at OxyPlot.Wpf.Plot.UpdateVisuals() in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot.Wpf\Plot.cs:line 1119
at OxyPlot.Wpf.Plot.ArrangeOverride(Size arrangeBounds) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot.Wpf\Plot.cs:line 564
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
Comments: Can you try the latest version? This may be solved with the recent changes on model update/invalidation in the Plot control.
After updating to new version of oxyplot, I am getting below error. Could you please help me to resolve this. Attached sample code.
__<package id="OxyPlot.Core" version="2014.1.245.1" targetFramework="net40" />
<package id="OxyPlot.Wpf" version="2014.1.245.1" targetFramework="net40" />__
Object reference not set to an instance of an object.
at OxyPlot.PlotElement.get_ActualFont() in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotElement.cs:line 106
at OxyPlot.Axes.Axis.Measure(IRenderContext rc) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\Axes\Axis.cs:line 985
at OxyPlot.PlotModel.MaxSizeOfPositionTier(IRenderContext rc, IEnumerable1 axesOfPositionTier) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 174
at OxyPlot.PlotModel.AdjustAxesPositions(IRenderContext rc, IList1 parallelAxes) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 249
at OxyPlot.PlotModel.AdjustPlotMargins(IRenderContext rc) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 212
at OxyPlot.PlotModel.Render(IRenderContext rc, Double width, Double height) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 76
at OxyPlot.Wpf.Plot.UpdateVisuals() in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot.Wpf\Plot.cs:line 1119
at OxyPlot.Wpf.Plot.ArrangeOverride(Size arrangeBounds) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot.Wpf\Plot.cs:line 564
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
Comments: Can you try the latest version? This may be solved with the recent changes on model update/invalidation in the Plot control.
↧
New Post: ColumnSeries doesn't show the data
Can someone please advise what's wrong with my code? it is a very simple test to create a column chart but whatever I do I can only see the chart without any columns (no data).
using OxyPlot;using OxyPlot.Axes;
using OxyPlot.Series;
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
namespace test
{
public class MainViewModel : ViewModelBase
{
private ObservableCollection<ReportModel> content;
public ObservableCollection<ReportModel> Content { get { return content; } set { content = value; OnPropertyChanged("Content"); } }
private PlotModel plotModel;
public PlotModel PlotModel { get { return plotModel; } set { plotModel = value; OnPropertyChanged("PlotModel"); } }
public MainViewModel()
{
Content = new ObservableCollection<ReportModel>();
PlotModel = new PlotModel();
SetupContent();
SetupModel();
}
private void SetupModel()
{
var dateAxis = new DateTimeAxis(AxisPosition.Bottom, "Date", "MM/yy")
{
MajorGridlineStyle = LineStyle.Solid,
MinorGridlineStyle = LineStyle.Dot,
IntervalLength = 80
};
//PlotModel.Axes.Add(dateAxis);
var valueAxis = new LinearAxis(AxisPosition.Left, 0)
{
MajorGridlineStyle = LineStyle.Solid,
MinorGridlineStyle = LineStyle.Dot,
Minimum = 13000,
Maximum = 16000,
Title = "Value"
};
//plotModel.Axes.Add(valueAxis);
var lineSeries = new ColumnSeries() { ItemsSource = Content, ValueField = "Amount" };
PlotModel.Series.Add(lineSeries);
}
private void SetupContent()
{
Content.Add(new ReportModel("12/1/2013", 14000));
Content.Add(new ReportModel("1/1/2014", 15000));
Content.Add(new ReportModel("2/1/2014", 14500));
}
}
public class ReportModel : ViewModelBase
{
private DateTime date;
public DateTime Date { get { return date; } set { date = value; OnPropertyChanged("Date"); } }
private int amount;
public int Amount { get { return amount; } set { amount = value; OnPropertyChanged("Amount"); } }
public ReportModel(string date, int amount)
{
Date = Convert.ToDateTime(date);
Amount = amount;
}
}
public abstract class ViewModelBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propName)
{
Debug.Assert(GetType().GetProperty(propName) != null);
var pc = PropertyChanged;
if (pc != null)
pc(this, new PropertyChangedEventArgs(propName));
}
}}
↧
New Post: iOS - Can't Add PlotView via AddSubview
I'm curious why this doesn't work...
Say I'm in a class that is a UIViewController, I would expect I could do the following:
I would have expected I could call
Where I'm running into problems is I have a
Thoughts?
Say I'm in a class that is a UIViewController, I would expect I could do the following:
var plot = new PlotView ();
plot.Model = graph.Plot;
plot.BackgroundColor = UIColor.Red;
this.View.AddSubview(plot);
This will not show the plot, however if I dothis.View = plot
The plot shows up fine.I would have expected I could call
AddSubView(plot) and it would have worked.Where I'm running into problems is I have a
UIViewController that I'm adding to another UIViewController using AddChildViewController...and my plot won't render.Thoughts?
↧
↧
Commented Unassigned: OxyMouseEventArgs.ClickCount is not being set [10152]
Trying to get an event that only fires on double-click working but ClickCount is always 0. Checked the source and looks like the ClickCount is not being set.
Comments: I am using WPF so that is perfect. Thank you for your response!
Comments: I am using WPF so that is perfect. Thank you for your response!
↧
Commented Unassigned: Poor live data performance [10134]
Based on [this article](https://oxyplot.codeplex.com/discussions/281036) I'm using PlotModel.RefreshPlot(true) frequently to load live data, approximately 20 times per second or so, but the performance is not good. It is sluggish and lags behind.
I have 8 line series with 1000 samples/sec each, but reducing the data frequency does not seem to help much, so this does not seem directly related to drawing performance.
There are a few issues:
* RefreshPlot(true) seems to queue on the GUI thread, probably with BeginInvoke, so that if it runs sluggishly it will also start lagging behind with several seconds in a short time.
* RefreshPlot generally feels very slow for a live data scenario
* The GUI thread is locked for big chunks of the time, so even moving the parent window is very sluggish
I am on a powerful PC with pretty recent CPU and GPU, so that should not be the problem. Running Windows 8, but same is seen on Win7.
I have not yet dug into the source code of Oxyplot, but are there any tips on how to improve live data rendering?
Comments: Created a new [pull](https://oxyplot.codeplex.com/SourceControl/network/forks/tibel/plot/contribution/6412) based on the latest changes. It will reduce the time one thread waiting for rendering. That's all what can be done in OxyPlot itself. My and your assumptions were wrong here, I think: Take a Oscilloscope sampling at 5 GHz but it has a TFT display that refreshes with 60 Hz. You can't render at 5 GHz only sampling is done at that speed. It uses data aggregation that then updates the UI at only 60 Hz (max). OxyPlot is some incredible piece of rendering tech but it is only rendering. That means 60 Hz refresh rate. You have to do something similar as an Oscilloscope does to visualize the data sampled at higher rates than redrawing is done.
I have 8 line series with 1000 samples/sec each, but reducing the data frequency does not seem to help much, so this does not seem directly related to drawing performance.
There are a few issues:
* RefreshPlot(true) seems to queue on the GUI thread, probably with BeginInvoke, so that if it runs sluggishly it will also start lagging behind with several seconds in a short time.
* RefreshPlot generally feels very slow for a live data scenario
* The GUI thread is locked for big chunks of the time, so even moving the parent window is very sluggish
I am on a powerful PC with pretty recent CPU and GPU, so that should not be the problem. Running Windows 8, but same is seen on Win7.
I have not yet dug into the source code of Oxyplot, but are there any tips on how to improve live data rendering?
Comments: Created a new [pull](https://oxyplot.codeplex.com/SourceControl/network/forks/tibel/plot/contribution/6412) based on the latest changes. It will reduce the time one thread waiting for rendering. That's all what can be done in OxyPlot itself. My and your assumptions were wrong here, I think: Take a Oscilloscope sampling at 5 GHz but it has a TFT display that refreshes with 60 Hz. You can't render at 5 GHz only sampling is done at that speed. It uses data aggregation that then updates the UI at only 60 Hz (max). OxyPlot is some incredible piece of rendering tech but it is only rendering. That means 60 Hz refresh rate. You have to do something similar as an Oscilloscope does to visualize the data sampled at higher rates than redrawing is done.
↧
Source code checked in, #f03d335168b3
Wpf.Plot: ActualModel should be thread safe (discussions/538775)
↧
New Post: Plot disappear in demo (oxyplot-a53ac6bf18cf )
thanks, I checked in a fix. Also see the unit tests. We should add similar tests for the Invalidate/Update functionality too.
↧
↧
Source code checked in, #8ff3c0ec6a51
Merge
↧
Commented Unassigned: Poor live data performance [10134]
Based on [this article](https://oxyplot.codeplex.com/discussions/281036) I'm using PlotModel.RefreshPlot(true) frequently to load live data, approximately 20 times per second or so, but the performance is not good. It is sluggish and lags behind.
I have 8 line series with 1000 samples/sec each, but reducing the data frequency does not seem to help much, so this does not seem directly related to drawing performance.
There are a few issues:
* RefreshPlot(true) seems to queue on the GUI thread, probably with BeginInvoke, so that if it runs sluggishly it will also start lagging behind with several seconds in a short time.
* RefreshPlot generally feels very slow for a live data scenario
* The GUI thread is locked for big chunks of the time, so even moving the parent window is very sluggish
I am on a powerful PC with pretty recent CPU and GPU, so that should not be the problem. Running Windows 8, but same is seen on Win7.
I have not yet dug into the source code of Oxyplot, but are there any tips on how to improve live data rendering?
Comments: The pull request is accepted, great work tibel! Can we close the issue, or what more should be done?
I have 8 line series with 1000 samples/sec each, but reducing the data frequency does not seem to help much, so this does not seem directly related to drawing performance.
There are a few issues:
* RefreshPlot(true) seems to queue on the GUI thread, probably with BeginInvoke, so that if it runs sluggishly it will also start lagging behind with several seconds in a short time.
* RefreshPlot generally feels very slow for a live data scenario
* The GUI thread is locked for big chunks of the time, so even moving the parent window is very sluggish
I am on a powerful PC with pretty recent CPU and GPU, so that should not be the problem. Running Windows 8, but same is seen on Win7.
I have not yet dug into the source code of Oxyplot, but are there any tips on how to improve live data rendering?
Comments: The pull request is accepted, great work tibel! Can we close the issue, or what more should be done?
↧
Commented Unassigned: OxyMouseEventArgs.ClickCount is not being set [10152]
Trying to get an event that only fires on double-click working but ClickCount is always 0. Checked the source and looks like the ClickCount is not being set.
Comments: If this is working as expected (at least for WPF), can we close the issue?
Comments: If this is working as expected (at least for WPF), can we close the issue?
↧
Source code checked in, #925600a8c195
Wpf: add unit tests for Plot (forgot to include in rev 874)
↧
↧
Commented Unassigned: oxyplot - 2014.1.245.1 get_ActualFont Error [10157]
Hi All,
After updating to new version of oxyplot, I am getting below error. Could you please help me to resolve this. Attached sample code.
__<package id="OxyPlot.Core" version="2014.1.245.1" targetFramework="net40" />
<package id="OxyPlot.Wpf" version="2014.1.245.1" targetFramework="net40" />__
Object reference not set to an instance of an object.
at OxyPlot.PlotElement.get_ActualFont() in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotElement.cs:line 106
at OxyPlot.Axes.Axis.Measure(IRenderContext rc) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\Axes\Axis.cs:line 985
at OxyPlot.PlotModel.MaxSizeOfPositionTier(IRenderContext rc, IEnumerable1 axesOfPositionTier) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 174
at OxyPlot.PlotModel.AdjustAxesPositions(IRenderContext rc, IList1 parallelAxes) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 249
at OxyPlot.PlotModel.AdjustPlotMargins(IRenderContext rc) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 212
at OxyPlot.PlotModel.Render(IRenderContext rc, Double width, Double height) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 76
at OxyPlot.Wpf.Plot.UpdateVisuals() in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot.Wpf\Plot.cs:line 1119
at OxyPlot.Wpf.Plot.ArrangeOverride(Size arrangeBounds) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot.Wpf\Plot.cs:line 564
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
Comments: I still facing the same issue after downloading the latest version. I have attached the screenshot of error here. I really appreciate if you could solve this issue. __Version:__ <packages> <package id="OxyPlot.Core" version="2014.1.248.1" targetFramework="net40-Client" /> <package id="OxyPlot.Wpf" version="2014.1.246.1" targetFramework="net40-Client" /> </packages>
After updating to new version of oxyplot, I am getting below error. Could you please help me to resolve this. Attached sample code.
__<package id="OxyPlot.Core" version="2014.1.245.1" targetFramework="net40" />
<package id="OxyPlot.Wpf" version="2014.1.245.1" targetFramework="net40" />__
Object reference not set to an instance of an object.
at OxyPlot.PlotElement.get_ActualFont() in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotElement.cs:line 106
at OxyPlot.Axes.Axis.Measure(IRenderContext rc) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\Axes\Axis.cs:line 985
at OxyPlot.PlotModel.MaxSizeOfPositionTier(IRenderContext rc, IEnumerable1 axesOfPositionTier) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 174
at OxyPlot.PlotModel.AdjustAxesPositions(IRenderContext rc, IList1 parallelAxes) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 249
at OxyPlot.PlotModel.AdjustPlotMargins(IRenderContext rc) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 212
at OxyPlot.PlotModel.Render(IRenderContext rc, Double width, Double height) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot\PlotModel\PlotModel.Rendering.cs:line 76
at OxyPlot.Wpf.Plot.UpdateVisuals() in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot.Wpf\Plot.cs:line 1119
at OxyPlot.Wpf.Plot.ArrangeOverride(Size arrangeBounds) in c:\TeamCity\buildAgent\work\3b9fcf1ba397d0ed\Source\OxyPlot.Wpf\Plot.cs:line 564
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
Comments: I still facing the same issue after downloading the latest version. I have attached the screenshot of error here. I really appreciate if you could solve this issue. __Version:__ <packages> <package id="OxyPlot.Core" version="2014.1.248.1" targetFramework="net40-Client" /> <package id="OxyPlot.Wpf" version="2014.1.246.1" targetFramework="net40-Client" /> </packages>
↧
New Post: iOS PlotView Sealed?
What are your thoughts on the
i.e. I need to have a second local variable to hold the
PlotModel issue?i.e. I need to have a second local variable to hold the
PlotModel, build it up, then assign it to this.PlotModel = localPlotModel; else rendering fails down in the core OxyPlot project?↧
New Post: iOS - Can't Add PlotView via AddSubview
I'll see if I can take a look and figure out what is going on, can you create an issue in the issue tracker to track this?
↧
Edited Unassigned: OxyMouseEventArgs.ClickCount is not being set [10152]
Trying to get an event that only fires on double-click working but ClickCount is always 0. Checked the source and looks like the ClickCount is not being set.
↧
↧
Commented Unassigned: OxyMouseEventArgs.ClickCount is not being set [10152]
Trying to get an event that only fires on double-click working but ClickCount is always 0. Checked the source and looks like the ClickCount is not being set.
Comments: For sure.
Comments: For sure.
↧
New Post: Axis Titles Not showing up
When I create a axis in xaml, and set the title, it is not appearing, I have the following simple code to set up my axis
Any help would be greatly appreciated.
<oxy:LinearAxis Position="Left" MajorGridlineThickness="2" Title="Test Title"/>
This was working in the past but now the title does not appear anymore. I need the axis to have a title because it does not make sense without it.Any help would be greatly appreciated.
↧
New Post: ColumnSeries doesn't show the data
Here is the new code. Actually I have tried with or without CategoryAxis and LinearAxis. The result is similar and only show the empty chart...
using OxyPlot;
using OxyPlot.Axes;
using OxyPlot.Series;
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
namespace test
{
public class MainViewModel : ViewModelBase
{
private ObservableCollection<ReportModel> content;
public ObservableCollection<ReportModel> Content { get { return content; } set { content = value; OnPropertyChanged("Content"); } }
private PlotModel plotModel;
public PlotModel PlotModel { get { return plotModel; } set { plotModel = value; OnPropertyChanged("PlotModel"); } }
public MainViewModel()
{
Content = new ObservableCollection<ReportModel>();
PlotModel = new PlotModel();
SetupContent();
SetupModel();
}
private void SetupModel()
{
var dateAxis = new CategoryAxis() { ItemsSource = Content, LabelField = "Date" };
PlotModel.Axes.Add(dateAxis);
var valueAxis = new LinearAxis(AxisPosition.Left, 0);
PlotModel.Axes.Add(valueAxis);
var lineSeries = new ColumnSeries() { ItemsSource = Content, ValueField = "Amount" };
PlotModel.Series.Add(lineSeries);
}
private void SetupContent()
{
Content.Add(new ReportModel("12/1/2013", 14000));
Content.Add(new ReportModel("1/1/2014", 15000));
Content.Add(new ReportModel("2/1/2014", 14500));
}
}
public class ReportModel : ViewModelBase
{
private DateTime date;
public DateTime Date { get { return date; } set { date = value; OnPropertyChanged("Date"); } }
private int amount;
public int Amount { get { return amount; } set { amount = value; OnPropertyChanged("Amount"); } }
public ReportModel(string date, int amount)
{
Date = Convert.ToDateTime(date);
Amount = amount;
}
}
public abstract class ViewModelBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propName)
{
Debug.Assert(GetType().GetProperty(propName) != null);
var pc = PropertyChanged;
if (pc != null)
pc(this, new PropertyChangedEventArgs(propName));
}
}
}
↧