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

New Post: NuGet status for OxyPlot.Metro package?

$
0
0
yes, the package is updated, but I have not had time to test it yet. I only noticed that the generic.xaml file is no more generated.
Let us know if it is working or not!

Source code checked in, #b4df4c420e50

$
0
0
Add xkcd rendering decorator (discussions/542280)

New Post: XKCD-style graphs

$
0
0
The decorator is checked in. I just added some random jitter that doesn't look good. Please help on a xkcd filter function similar to the one used in mathematica/matplotlib!
Tip: install the Humor-Sans.ttf font (easily found by google).

Source code checked in, #cc6ab7689c30

$
0
0
Add ColumnSeries to xkcd examples

Created Unassigned: HeatMaps can't be rendered with single column/row data [10180]

$
0
0
It's easy to reproduce:

Edit C:\dev\oxyplot_af2ed795a9fe\Source\Examples\ExampleLibrary\Examples\HeatMapSeriesExamples.cs

Modify CreateExample and change-
var data = new double[2, 3];
data[0, 0] = 0;
data[0, 1] = 0.2;
data[0, 2] = 0.4;
data[1, 0] = 0.1;
data[1, 1] = 0.3;
data[1, 2] = 0.2;

to either:
var data = new double[1, 3];
data[0, 0] = 0;
data[0, 1] = 0.2;
data[0, 2] = 0.4;

or:
var data = new double[2, 1];
data[0, 0] = 0;
data[1, 0] = 0.1;

recompile, and run the winform example browser and select the heatmap examples.

There's a divide by 0 exception triggered.

New Post: NuGet status for OxyPlot.Metro package?

$
0
0
Hmm, there seem to be a few issues with OxyPlot.Metro 2014.1.283.1:
  • My Windows Store app is targeted at Windows 8(.0), and it could successfully use version 2014.1.1.1. When I update OxyPlot.Metro to the latest version, the NuGet manager does not complain. But when I build the project, I get a warning that the OxyPlot.Metro package was built with an incompatible version, and I also get a compilation error in the auto-generated file related to my XAML view, claiming that "the namespace OxyPlot could not be found". Ideally, this incompatibility should have spotted already by NuGet Manager, right?
  • After retargeting my Windows Store app to Windows 8.1, building succeeds, except that the method "Plot.RefreshPlot()" is no longer available. In principle, I guess this is a good sign (I assume the plot is meant to update automatically in the general case)? However, all I see is a white sheet covering the entire plot area. No axes, no curves, no nothing. I tried to replace the "RefreshPlot()" call with "InvalidatePlot()", but to no avail.
I realize that this is not much to build debugging on. If you want more detailed information, just let me know what you need and I'll try to provide it. But for the time being I feel that it is best for me to revert to version 2014.1.1.1 again.

Best regards,
Anders

Commented Unassigned: Memory Leak in LineSeries [10151]

$
0
0
As described in this discussion:
https://oxyplot.codeplex.com/discussions/532576#post1215810

When LineSeries is bound to rapidly changing data, it can be observed that stale data which is no longer displayed is not being properly garbage collected. This leak is independent of the storage class that is used in the view model layer; the one test case that avoided the memory leak was by binding the line series to an observable collection, and clearing the observable collection prior to each update, however this process is expected to be extremely inefficient.

The attached project is equivalent to the usage within my application, and exhibits the leak. Eventually, the application should throw an OutOfMemoryException (typically within a few hours), although the leak can be observed rather quickly from a memory profiler.
Comments: @tibel: You are absolutely correct that our threading model is to blame; separating the incoming data queue from the display data resolves the memory leak entirely. The changes we've made do not incorporate your suggestion above of locking the plot, as separating the queues so that the display queue is only modified from the graphing thread makes more sense in our implementation than locking resources. I've attached the fixed file, so that our solution can be used as a reference if anyone encounters a similar problem. Thank you very much for the insight into our problem (and to everyone who contributes to this fantastic project, the performance and features of this tool are astounding).

Commented Unassigned: Memory Leak in LineSeries [10151]

$
0
0
As described in this discussion:
https://oxyplot.codeplex.com/discussions/532576#post1215810

When LineSeries is bound to rapidly changing data, it can be observed that stale data which is no longer displayed is not being properly garbage collected. This leak is independent of the storage class that is used in the view model layer; the one test case that avoided the memory leak was by binding the line series to an observable collection, and clearing the observable collection prior to each update, however this process is expected to be extremely inefficient.

The attached project is equivalent to the usage within my application, and exhibits the leak. Eventually, the application should throw an OutOfMemoryException (typically within a few hours), although the leak can be observed rather quickly from a memory profiler.
Comments: @objo: The code can be converted using one of many free web-conversion utilities (such as [this](http://www.developerfusion.com/tools/convert/vb-to-csharp/)). You are welcome to incorporate our code into any unit testing you wish. As stated above, the issue was caused by the way in which we were manipulating data between our two threads.

New Post: AngleAxis.StartAngle in WPF

$
0
0
I'm graphing a polar plot from -180 to 180 degrees. 0 is on the left and positive is counter-clockwise. I'd prefer for 0 to be at the top and positive to be clockwise.

The examples in the example browser use StartAngle and EndAngle to solve both of these issues, but those properties don't seem to exist in OxyPlot.Wpf

Is there any way to do this in WPF?

Source code checked in, #81fd9035c5b2

$
0
0
Wpf.AngleAxis: add StartAngle and EndAngle properties (discussions/542549)

Source code checked in, #6d5de20c2ccb

$
0
0
Wpf.AngleAxis: add property change callback to new properties

Source code checked in, #4c8b648c6899

$
0
0
#9999 Add Wpf:StairStepSeries (from DJDAS)

Commented Issue: Complete XAML support [9999]

$
0
0
Add XAML support for all types of annotations, axes and series for WPF, Silverlight and Windows Store Apps.
Include all properties.
Create a tool that generates this code automatically.
Comments: @DJDAS: thanks! Sorry that it took a long time before I remembered to include this.

New Post: AngleAxis.StartAngle in WPF

New Post: How can I make line series color, axis label color & axis title color to be the same.

$
0
0
I am using winforms oxyplot and How can I make line series color, axis label color & axis title color to be the same.
Thanks,
Ramakrishna

Created Unassigned: Issue with binding LineSeries to dynamic objects [10181]

$
0
0
When binding a LineSeries to an object that implements ICustomTypeDescriptor, LineSeries can not find dynamic properties set in DataFieldX and DataFieldY. It is because you are using GetType() of objects in ReflectionHelper class. To overcome this problem, you can correct that code like this:

```
public static void FillList(List<DataPoint> target, IEnumerable itemsSource, string dataFieldX, string dataFieldY)
{
PropertyDescriptor px = null;
PropertyDescriptor py = null;
Type t = null;

foreach (var o in itemsSource)
{
if (pix == null || o.GetType() != t)
{
t = o.GetType();
var properties = TypeDescriptor.GetProperties(o);
px = properties(dataFieldX);
py = properties(dataFieldY);
if (px == null)
{
throw new InvalidOperationException(
string.Format("Could not find data field {0} on type {1}", dataFieldX, t));
}

if (py == null)
{
throw new InvalidOperationException(
string.Format("Could not find data field {0} on type {1}", dataFieldY, t));
}
}

double x = Axis.ToDouble(px.GetValue(o));
double y = Axis.ToDouble(py.GetValue(o));

var pp = new DataPoint(x, y);
target.Add(pp);
}
}

```

New Post: ColumnSeries

$
0
0
Hi,

im trying to use ColumnSeries with OxyPlot.

XAML-Code:
<Window x:Class="ChartTests.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:oxy="http://oxyplot.codeplex.com"
    Title="ChartTests" Height="600" Width="600"
    >
    <Grid>
        <DockPanel>
            <StackPanel
                Orientation="Horizontal"
                DockPanel.Dock="Top">
                <Button
                    Margin="5,5,5,0">
                </Button>
                <Button
                    Margin="5,5,5,0">
                </Button>
                <Button
                    Margin="5,5,5,0">
                </Button>
            </StackPanel>
            <oxy:Plot
                Name="MainChart"
                Title="{Binding ChartTitle}">
                <oxy:Plot.Axes>
                    <oxy:LinearAxis 
                        AbsoluteMinimum="0"
                        AbsoluteMaximum="100"/>
                </oxy:Plot.Axes>
                <oxy:Plot.Series>
                    <oxy:ColumnSeries
                        Title="{Binding SeriesName}"
                        ItemsSource="{Binding Items}">
                    </oxy:ColumnSeries>
                </oxy:Plot.Series>
            </oxy:Plot>
        </DockPanel>
    </Grid>
</Window>
DataContext:
public class MainWindowDataContext
{
    public string ChartTitle { get; set; }
    public List<ColumnItem> Items { get; set; } //From OxyPlot.Series
    public string SeriesName { get; set; }
    public int YAMax { get; set; }
    public int YAMin { get; set; }
        
    public MainWindowDataContext()
    {
         InitializeData();
    }
        
     private void InitializeData()
     {
         ChartTitle = "Main Chart";
            
        SeriesName = "Mitarbeiter";
            
        YAMax = 130;
        YAMin = 0;
            
        Items = new List<ColumnItem>();
            
        Items.Add(new ColumnItem(34.45, 1));
        Items.Add(new ColumnItem(33.45, 2));
        Items.Add(new ColumnItem(32.45, 3));
        Items.Add(new ColumnItem(44.45, 4));
        Items.Add(new ColumnItem(43.45, 5));
        Items.Add(new ColumnItem(42.45, 6));
    }
}
Code behind XAML:
public partial class Window1 : Window
{
    private MainWindowDataContext _mdc;
        
    public Window1()
    {
        _mdc = new MainWindowDataContext();
        this.DataContext = this._mdc;
                        
         InitializeComponent();
    }
}
There are no columns. But there are six sections on the X-axis - so the plot sees my items.
What's wrong with that?

Thanks,
mirola

Source code checked in, #75b4375af0ef

$
0
0
TextAnnotation: change default TextColor to automatic

Source code checked in, #4dfd21897981

$
0
0
Wpf: correct bugs in annotation wrappers

Commented Unassigned: Text alignment within PolygonAnnotation [10182]

$
0
0
Is it possible to set the alignment of the text within a PolygonAnnotation?

I've been looking through the documentation, but can't find anything.

I use a PolygonAnnotation to overlay a ScatterSeries, but unfortunately the describing text appears right where the most interesting points are.

I'm thinking along the line of: HorizontalTextAlignment="Left" etc.
Comments: Should be correct now.
Viewing all 2061 articles
Browse latest View live


Latest Images

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