Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all 2061 articles
Browse latest View live

Closed Unassigned: Exception in PathAnnotation.HitTest [10140]

$
0
0
In a mousedown handler on the plotmodel, I'm deleting a polyline object from the plotmodel and creating another one instead.
When clicking repeatedly, I can get the situation that Oxyplot tries to do a hittest while screenPoints == null. I'm not sure it this has to do with the fact that I'm deleting the objects from the plotmodel.
I can fix this by testing for null in HitTest. See code below after the TODO comment:

PathAnnotation.cs:

protected internal override HitTestResult HitTest(ScreenPoint point, double tolerance)
{
// TODO: TEST FOR NULL
if (this.screenPoints == null)
{
return null;
}

var nearestPoint = ScreenPointHelper.FindNearestPointOnPolyline(point, this.screenPoints);
double dist = (point - nearestPoint).Length;
if (dist < tolerance)
{
return new HitTestResult(nearestPoint);
}

return null;
}

Kind regards,
Wim Bokkers

Closed Issue: Fast dynamic data. System.InvalidOperationException [10104]

$
0
0
im use fast dynamic data. sometimes it thrown exception (An unhandled exception of type 'System.InvalidOperationException' occurred in mscorlib.dll) - collection changed; cant iterate this. i solved the problem changing "foreach" to "for" in OxyPlot.Series.ScatterSeries and in OxyPlot.Series.DataPointSeries.cs

Closed Issue: GetNearestPoint return DataPoint even when custom IDataPoint used [10115]

$
0
0
I noticed that Series.Points is a collection of IDataPoint.

"Great!" I thought. So I created a custom type (where I could hold some extra info) and drew my graph and it worked.

The problem is when I use Series.GetNearestPoint it seems to be returning me DataPoint underneath the IDataPoint when I'm expecting it to return my custom type.

Any clues?

Closed Issue: rendering artifacts at full screen [10001]

$
0
0
Strange moire pattern when we maximize view of our application or size application window above 1300px wide.

AxisDemo application also shows artifacts when maximised for some graphs?

Attached are three screen shots.


Source code checked in, #5042b3917274

$
0
0
Android: correct for high resolution (160dpi), coordinates of render context should be 96dpi.

Source code checked in, #9c38483b5574

$
0
0
Android: create example for Xamarin component

Source code checked in, #47b50eed7cc0

Source code checked in, #4627e774c828

$
0
0
Xamarin component details and getting started

Source code checked in, #af2ed795a9fe

$
0
0
Xamarin component: update getting started doc

Created Unassigned: Issue with ScatterSeries in latest NuGet versions (WPF) [10179]

$
0
0
It seems something has broken or changed regarding ScatterSeries in the latest NuGet packages.

I have a simple MVVM setup:
View:
```
<Window x:Class="TestApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:oxy="http://oxyplot.codeplex.com"
xmlns:local="clr-namespace:TestApplication"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<local:MainWindowModel x:Key="viewModel" />
</Window.Resources>
<Grid DataContext="{StaticResource viewModel}">
<oxy:Plot x:Name="Plot1" Title="A Graph" Margin="10" Grid.Row="1" >
<oxy:ScatterSeries ItemsSource="{Binding Data}" MarkerSize="3" />
<oxy:Plot.Axes >
<oxy:LinearAxis Position="Left" Minimum="0" Maximum="10" />
<oxy:LinearAxis Position="Bottom" Minimum="0" Maximum="25" />
</oxy:Plot.Axes>
</oxy:Plot>
</Grid>
</Window>
```

ViewModel:

```
using OxyPlot;
using System.Collections.Generic;

namespace TestApplication
{
public class MainWindowModel
{
List<DataPoint> data = new List<DataPoint>()
{
new DataPoint(5,5),
new DataPoint(10, 6),
new DataPoint(15, 7),
new DataPoint(20, 5)
};

public List<DataPoint> Data
{
get { return data; }
}

public MainWindowModel()
{ }
}
}
```

If I reference the official packages from codeplex (2014.1.240.1) everything works fine. If I reference the latest NuGet package (2014.1.277.1) no points are rendered.

In addition to that, if I reference the older NuGet package 2014.1.271.1 I get a single point at (0,0).

I might have missed a breaking change in how the newer versions work, but I feels like something has broken i the ScatterSeries implementation.


Edited Unassigned: Issue with ScatterSeries in latest NuGet versions (WPF) [10179]

$
0
0
It seems something has broken or changed regarding ScatterSeries in the latest NuGet packages.

I have a simple MVVM setup:
View:
```
<Window x:Class="TestApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:oxy="http://oxyplot.codeplex.com"
xmlns:local="clr-namespace:TestApplication"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<local:MainWindowModel x:Key="viewModel" />
</Window.Resources>
<Grid DataContext="{StaticResource viewModel}">
<oxy:Plot x:Name="Plot1" Title="A Graph" Margin="10" Grid.Row="1" >
<oxy:ScatterSeries ItemsSource="{Binding Data}" MarkerSize="3" />
<oxy:Plot.Axes >
<oxy:LinearAxis Position="Left" Minimum="0" Maximum="10" />
<oxy:LinearAxis Position="Bottom" Minimum="0" Maximum="25" />
</oxy:Plot.Axes>
</oxy:Plot>
</Grid>
</Window>
```

ViewModel:

```
using OxyPlot;
using System.Collections.Generic;

namespace TestApplication
{
public class MainWindowModel
{
List<DataPoint> data = new List<DataPoint>()
{
new DataPoint(5,5),
new DataPoint(10, 6),
new DataPoint(15, 7),
new DataPoint(20, 5)
};

public List<DataPoint> Data
{
get { return data; }
}

public MainWindowModel()
{ }
}
}
```

If I reference the official packages from codeplex (2014.1.240.1) everything works fine. If I reference the latest NuGet package (2014.1.277.1) no points are rendered.

In addition to that, if I reference the older NuGet package 2014.1.271.1 I get a single point at (0,0).

I might have missed a breaking change in how the newer versions work, but it feels like something has broken in the ScatterSeries implementation.


Commented Unassigned: Issue with ScatterSeries in latest NuGet versions (WPF) [10179]

$
0
0
It seems something has broken or changed regarding ScatterSeries in the latest NuGet packages.

I have a simple MVVM setup:
View:
```
<Window x:Class="TestApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:oxy="http://oxyplot.codeplex.com"
xmlns:local="clr-namespace:TestApplication"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<local:MainWindowModel x:Key="viewModel" />
</Window.Resources>
<Grid DataContext="{StaticResource viewModel}">
<oxy:Plot x:Name="Plot1" Title="A Graph" Margin="10" Grid.Row="1" >
<oxy:ScatterSeries ItemsSource="{Binding Data}" MarkerSize="3" />
<oxy:Plot.Axes >
<oxy:LinearAxis Position="Left" Minimum="0" Maximum="10" />
<oxy:LinearAxis Position="Bottom" Minimum="0" Maximum="25" />
</oxy:Plot.Axes>
</oxy:Plot>
</Grid>
</Window>
```

ViewModel:

```
using OxyPlot;
using System.Collections.Generic;

namespace TestApplication
{
public class MainWindowModel
{
List<DataPoint> data = new List<DataPoint>()
{
new DataPoint(5,5),
new DataPoint(10, 6),
new DataPoint(15, 7),
new DataPoint(20, 5)
};

public List<DataPoint> Data
{
get { return data; }
}

public MainWindowModel()
{ }
}
}
```

If I reference the official packages from codeplex (2014.1.240.1) everything works fine. If I reference the latest NuGet package (2014.1.277.1) no points are rendered.

In addition to that, if I reference the older NuGet package 2014.1.271.1 I get a single point at (0,0).

I might have missed a breaking change in how the newer versions work, but it feels like something has broken in the ScatterSeries implementation.


Comments: Yes, there was a breaking change regarding the points collection due to performance improvements. Change your Data collection to List<ScatterPoint> Let us know if we can close the issue.

Commented Unassigned: Issue with ScatterSeries in latest NuGet versions (WPF) [10179]

$
0
0
It seems something has broken or changed regarding ScatterSeries in the latest NuGet packages.

I have a simple MVVM setup:
View:
```
<Window x:Class="TestApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:oxy="http://oxyplot.codeplex.com"
xmlns:local="clr-namespace:TestApplication"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<local:MainWindowModel x:Key="viewModel" />
</Window.Resources>
<Grid DataContext="{StaticResource viewModel}">
<oxy:Plot x:Name="Plot1" Title="A Graph" Margin="10" Grid.Row="1" >
<oxy:ScatterSeries ItemsSource="{Binding Data}" MarkerSize="3" />
<oxy:Plot.Axes >
<oxy:LinearAxis Position="Left" Minimum="0" Maximum="10" />
<oxy:LinearAxis Position="Bottom" Minimum="0" Maximum="25" />
</oxy:Plot.Axes>
</oxy:Plot>
</Grid>
</Window>
```

ViewModel:

```
using OxyPlot;
using System.Collections.Generic;

namespace TestApplication
{
public class MainWindowModel
{
List<DataPoint> data = new List<DataPoint>()
{
new DataPoint(5,5),
new DataPoint(10, 6),
new DataPoint(15, 7),
new DataPoint(20, 5)
};

public List<DataPoint> Data
{
get { return data; }
}

public MainWindowModel()
{ }
}
}
```

If I reference the official packages from codeplex (2014.1.240.1) everything works fine. If I reference the latest NuGet package (2014.1.277.1) no points are rendered.

In addition to that, if I reference the older NuGet package 2014.1.271.1 I get a single point at (0,0).

I might have missed a breaking change in how the newer versions work, but it feels like something has broken in the ScatterSeries implementation.


Comments: Ah, that solved the issue. Thanks for the fast response. You can close this.

Closed Unassigned: Issue with ScatterSeries in latest NuGet versions (WPF) [10179]

$
0
0
It seems something has broken or changed regarding ScatterSeries in the latest NuGet packages.

I have a simple MVVM setup:
View:
```
<Window x:Class="TestApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:oxy="http://oxyplot.codeplex.com"
xmlns:local="clr-namespace:TestApplication"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<local:MainWindowModel x:Key="viewModel" />
</Window.Resources>
<Grid DataContext="{StaticResource viewModel}">
<oxy:Plot x:Name="Plot1" Title="A Graph" Margin="10" Grid.Row="1" >
<oxy:ScatterSeries ItemsSource="{Binding Data}" MarkerSize="3" />
<oxy:Plot.Axes >
<oxy:LinearAxis Position="Left" Minimum="0" Maximum="10" />
<oxy:LinearAxis Position="Bottom" Minimum="0" Maximum="25" />
</oxy:Plot.Axes>
</oxy:Plot>
</Grid>
</Window>
```

ViewModel:

```
using OxyPlot;
using System.Collections.Generic;

namespace TestApplication
{
public class MainWindowModel
{
List<DataPoint> data = new List<DataPoint>()
{
new DataPoint(5,5),
new DataPoint(10, 6),
new DataPoint(15, 7),
new DataPoint(20, 5)
};

public List<DataPoint> Data
{
get { return data; }
}

public MainWindowModel()
{ }
}
}
```

If I reference the official packages from codeplex (2014.1.240.1) everything works fine. If I reference the latest NuGet package (2014.1.277.1) no points are rendered.

In addition to that, if I reference the older NuGet package 2014.1.271.1 I get a single point at (0,0).

I might have missed a breaking change in how the newer versions work, but it feels like something has broken in the ScatterSeries implementation.


New Post: Plotting time-series data (Speech and Other events)

$
0
0
Hi,

I have to generate time-series graphs where I can show speech (not as fancy speech waveforms) for different users. In addition, I would like to overlay other important discrete events on the speech. Is this possible to do in OxyPlot?

Maybe the question that I asked sounds a bit stupid, but I have to quickly decide on an effective API for generating charts where I am free to add multiple streams of data and can play around with the customization of the charts. I am quite proficient in WPF and C#.

Thanks in advance and any help would be greatly appreciated :)

New Post: override of getHashCode in PlotElement

$
0
0
Hi,

what is the reason for overriding GetHashCode in PlotElement?
In my opinion this is really risky cause it is now no more possible to compare, i.e. axes or hold dictionarys of axes.

Best regards

Benjamin

New Post: XKCD-style graphs

$
0
0
Hello,

How hard would it be to implement 'xkcd style' linestyles? I see no current 'style' setting I could enhance with such a styling.

for people that don't know what I mean: http://xkcdgraphs.com

Image
Image

These plots are very useful to show estimate data instead of hard, absolute data.

I'm curious for your insights :-)

Tnx,

Tobias

New Post: XKCD-style graphs

New Post: FileNotFoundException in XAML designer (Visual Studio 2012/2013)

$
0
0
Having the same problems in VS 2012 Update 4 and using Oxyplot.Wpf.dll (not Silverlight!). Installing the Silverlight 5 SDK also fixed things for me.

New Post: NuGet status for OxyPlot.Metro package?

$
0
0
Dear Oystein,

many many thanks for developing and sharing this terrific library!

I have planned to use it in my Windows Store application. However, I note that whereas the OxyPlot.Core library on NuGet is currently at version 2014.1.277.1 (from April 10), the OxyPlot.Metro library is still at version 2014.1.1.1 from January 7. Why is this? And what is the current status of the Metro library on CodePlex?

It seems like the latest Core library is not fully compatible with the latest Metro library; I get a "Method Not Found" exception when trying to plot a line series (unfortunately I do not have all the data for the crash right now, but I can bring it forward if you want me to).

Best regards,
Anders @ Cureos
Viewing all 2061 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>