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

New Post: Position of axis values in Polar Plot.

$
0
0
Hi Oystein!

I did change the angle of the AngleAxis it does not change the position of the label.

The only time it changed was when I put 180 degrees to all axis (two angleaxis and two magnitudeaxis).

Does the startAngle and / or endAngle properties influence on this in anyway?

Thanks!

Ralph

New Post: UserControl: XamlParseException

$
0
0
Hi everybody,

I'm a newbie to OxyPlot and WPF. I was able to run this example and adding some more fun stuff in a stand-alone application.
But when I try to make a User Control Library I keep getting a XamlParseException: impossible to load OxyPlot.Wpf, PublicKeyToken=75e952ba404cdbb0

In the main program I simply have an empty window with my control. The xaml in VS renders fine!

I'm using VS 2013 Update 2, Win 7, .net 4 or 4.5 behaves the same.
Oxyplot is 2014.1.318.1

It's probably a stupid trivial error, but I need somebody to point me to the right direction!
Thanks!
<UserControl x:Class="WpfControlLibrary1.UserControl1"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:oxy="http://oxyplot.codeplex.com"
             xmlns:local="clr-namespace:WpfControlLibrary1"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.DataContext>
        <local:MainViewModel/>
    </UserControl.DataContext>
    <Grid>
        <oxy:PlotView Title="{Binding Title}">
            <oxy:PlotView.Series>
                <oxy:LineSeries ItemsSource="{Binding Points}"/>
            </oxy:PlotView.Series>
        </oxy:PlotView>
    </Grid>
</UserControl>
namespace WpfControlLibrary1
{
    /// <summary>
    /// Interaction logic for UserControl1.xaml
    /// </summary>
    public partial class UserControl1 : UserControl
    {
        public UserControl1()
        {
            InitializeComponent();
        }
    }

    public class MainViewModel
    {
        public MainViewModel()
        {
            this.Title = "Example 2";
            this.Points = new List<DataPoint>
                              {
                                  new DataPoint(0, 4),
                                  new DataPoint(10, 13),
                                  new DataPoint(20, 15),
                                  new DataPoint(30, 16),
                                  new DataPoint(40, 12),
                                  new DataPoint(50, 12)
                              };
        }

        public string Title { get; private set; }

        public IList<DataPoint> Points { get; private set; }
    }
}

New Post: Axis label angle set to 90 degrees

$
0
0
Hello,

When I tried to create a category axis with its labels' angles set to 90 degrees, I have the following result:

Image

As we can see, the axis title is not shown correctly and labels that are to big are not displayed correctly.

Is this a bug or should I be setting a different property to display this information correctly?

Thanks!

New Post: Moving the project to GitHub

$
0
0
I'm all in favour, as I like the layout of github more and it has a really nice wiki feature (can be used as documentation and in-project discussions/ideas area). Although I guess I'm a bit bias since I use and prefer it myself (lol if you hadn't already guessed by me linking my stuff on it).

New Post: OxyPlot DataPoint and Drawing Point extension methods

$
0
0
I've had a reason come up to store values as PointF and convert them to DataPoints so that the user doesn't have to have the OxyPlot namespace when interacting with a simple control built around it. So for the hell of it I wrote some extension methods that I figured I'd share in case anyone else found them helpful:

https://gist.github.com/Slxe/a0c1e2cfbde4b95df650

(Let me know if you see any errors, learning advanced C# stuff as I go atm, so any feedback at all is helpful =D)

New Post: IsAxisVisible property not working when binding to Model

$
0
0
Is there a way to create a RectangleBarSeries without using the Model property? I've been experimenting but haven't found a way around this issue.

New Post: Example for touch in Win7?

$
0
0
Hi, all.

I've just obtained the OxyPlot.WPF package, which I'm trying to use in VS2010. I created the trivial application (just a PlotView in a Grid in a Window, with a bit of view-model code to load up a PlotModel, a couple of axes and a series). It displays quite nicely.

However, when I touch within the window (I have a touch-monitor), it immediate crashes with a NullReference Exception in PlotView.OnManipulationStarted. I'm assuming that I haven't wired up the manipulation features correctly, but I cannot find a demo for this. The "Code" button in the browser examples only show the function that builds the PlotModel. Where can I find a FULL example of a touch-enabled OxyPlot application?

Many thanks!

Jim Hudson

New Post: Can't display oxyplot in Xaml.

$
0
0
Hi All,

When I am calling a new window to show up Oxy plot it just does not show up at all. If I open the window by itself it shows the plot. But if I call from another window it just does not show up. What can be the reason? Any help would be appreciated.

Created Unassigned: Oxy plot wpf window does not show up when called from different wpf window. [10224]

$
0
0
Hi All,

When I am calling a new window to show up Oxy plot it just does not show up at all. If I open the window by itself it shows the plot. But if I call from another window it just does not show up. What can be the reason? Any help would be appreciated.

I am using VS 2012 and latest Oxy Plot.

Source code checked in, #b37c0d55ccd8

$
0
0
Wpf: extend text bounds to avoid unintended clipping

Created Unassigned: WPF Scatterseries not rendered at specific plot sizes [10225]

$
0
0
Hello!

I just upgraded to current nuget package from version 2014.1.257.1 to version 2024.1.318.1.

What am I doing:
I have a plot model with two scatter series and two line series as shown in the attachment screenshot to represent some kind of in/out of range.

Problem:
But in the current version of oxyplot, the second scatter serie is not properly rendered. Its points are just not visible at particular plot model sizes.
When the plot model size is change (e.g. by re-sizing the window) at some point the points are visible again. But only at that very special point. When the plot model is re-sized again, they disappear again.

Explanation:
The black and red dots are scatter series. They have the same setup, only "MarkerFill" is different.
Changing the z-index of black and red scatter series does not fix or change the behavior...
Big question is why are the black dots rendered, but not the red ones?



Any hints how to fix this?

Commented Unassigned: WPF Scatterseries not rendered at specific plot sizes [10225]

$
0
0
Hello!

I just upgraded to current nuget package from version 2014.1.257.1 to version 2024.1.318.1.

What am I doing:
I have a plot model with two scatter series and two line series as shown in the attachment screenshot to represent some kind of in/out of range.

Problem:
But in the current version of oxyplot, the second scatter serie is not properly rendered. Its points are just not visible at particular plot model sizes.
When the plot model size is change (e.g. by re-sizing the window) at some point the points are visible again. But only at that very special point. When the plot model is re-sized again, they disappear again.

Explanation:
The black and red dots are scatter series. They have the same setup, only "MarkerFill" is different.
Changing the z-index of black and red scatter series does not fix or change the behavior...
Big question is why are the black dots rendered, but not the red ones?



Any hints how to fix this?
Comments: Forgot to add the "good" rendering screenshot... Sorry.

New Post: Moving the project to GitHub

Commented Unassigned: WPF Scatterseries not rendered at specific plot sizes [10225]

$
0
0
Hello!

I just upgraded to current nuget package from version 2014.1.257.1 to version 2024.1.318.1.

What am I doing:
I have a plot model with two scatter series and two line series as shown in the attachment screenshot to represent some kind of in/out of range.

Problem:
But in the current version of oxyplot, the second scatter serie is not properly rendered. Its points are just not visible at particular plot model sizes.
When the plot model size is change (e.g. by re-sizing the window) at some point the points are visible again. But only at that very special point. When the plot model is re-sized again, they disappear again.

Explanation:
The black and red dots are scatter series. They have the same setup, only "MarkerFill" is different.
Changing the z-index of black and red scatter series does not fix or change the behavior...
Big question is why are the black dots rendered, but not the red ones?



Any hints how to fix this?
Comments: Can you include some code that reproduces the error? Try using Ctrl+Alt+C and paste into a gist or add here as a comment. Thanks!

New Post: Synced Major Gridlines

$
0
0
I kinda solved this problem, unfortuntely I did not have time to do it in a completely generic fashion.
You are welcome to use any of the follwing to make it generic and add it to Oxyplot though!

Background:
My graph contains 4 y-axis, 2 on each side.

Implementation:
I first had to decide how many major grid lines I was going to use for all the axes.
In my case, I constrained it to 20, because it works out well enough.
But one Idea I had that I never had time to implement was to let oxyplot create the axis natuarally by it self,
then find the one which naturally had the most grid marks and use that number of gridmarks as my gridmarkCount.

Then I had to make sure each axis started on a value and ended on a value, so first grid mark is always at the very bottom and last gridmark is always at the very top. This is simple enough if you set the minimum and maxium values to proper values.

Then I had to calculate a gridStep value that was evenly divisible by (maximum - minumum) / gridmarkCount.
This can be a bit tricky because the step values have to follow 1, 2, 5 , 10 etc, but its doable.

Finally, I needed a function to simply add x amount of gridSteps to the maximum of all other axis except the main, to make sure we ended up with gridmarkCount.

In my specific example it worked out like this:
  • MainAxis predetermined, not dynamic.
  • GridmarkCount = 20, not dynamic.
  • Minimum and Maximum always are 0 and 100 on my main axis, not dynamic.
  • Thus gridmarkStep becomes 5 on my main axis.
  • Calculate minimum and maximum for all other axis.
    If other axis turned out to have less than 20 gridmarks, I simply added x gridSteps to the maximum, thus changing the maximum until that axis gridmarkcount became 20.
  • Ensure each axis has an appropriate minimum and maximum to ensure first value is the absolute bottom and highest value is at the absolute top.
Hope this helps somehow!

New Post: Showing Line at 0 point of X Axis

$
0
0
Hello,
First of all thanks a lot for making such an awesome control for free.

I would like to show a horizontal line at 0 point of X Axis just as the red line in the following image.

Image

Could anybody please help me in this issue? I'd be very grateful!

Thanks.

New Post: Showing Line at 0 point of X Axis

$
0
0
Set this:
        youraxisname.MajorGridlineStyle = LineStyle.Solid;
        youraxisname.MinorGridlineStyle = LineStyle.None;
this way you get all the majorgridlines.

Commented Unassigned: WPF Scatterseries not rendered at specific plot sizes [10225]

$
0
0
Hello!

I just upgraded to current nuget package from version 2014.1.257.1 to version 2024.1.318.1.

What am I doing:
I have a plot model with two scatter series and two line series as shown in the attachment screenshot to represent some kind of in/out of range.

Problem:
But in the current version of oxyplot, the second scatter serie is not properly rendered. Its points are just not visible at particular plot model sizes.
When the plot model size is change (e.g. by re-sizing the window) at some point the points are visible again. But only at that very special point. When the plot model is re-sized again, they disappear again.

Explanation:
The black and red dots are scatter series. They have the same setup, only "MarkerFill" is different.
Changing the z-index of black and red scatter series does not fix or change the behavior...
Big question is why are the black dots rendered, but not the red ones?



Any hints how to fix this?
Comments: I tried to show the issue, but its hard to make it reproducable: https://gist.github.com/erdmenchen/6fa928079ae89829c6da Just create a new WPF-Project and add this window. There will be a similar behavior. But only the first black scatter point shows the rendering issue. Also I was able to narrow it down on width changes of the plot. So if you change the window width it will "flicker" the first entry point at x=0. I am trying to build a more reproducable code sample... Thanks!

Commented Unassigned: WPF Scatterseries not rendered at specific plot sizes [10225]

$
0
0
Hello!

I just upgraded to current nuget package from version 2014.1.257.1 to version 2024.1.318.1.

What am I doing:
I have a plot model with two scatter series and two line series as shown in the attachment screenshot to represent some kind of in/out of range.

Problem:
But in the current version of oxyplot, the second scatter serie is not properly rendered. Its points are just not visible at particular plot model sizes.
When the plot model size is change (e.g. by re-sizing the window) at some point the points are visible again. But only at that very special point. When the plot model is re-sized again, they disappear again.

Explanation:
The black and red dots are scatter series. They have the same setup, only "MarkerFill" is different.
Changing the z-index of black and red scatter series does not fix or change the behavior...
Big question is why are the black dots rendered, but not the red ones?



Any hints how to fix this?
Comments: I was able to reproduce it with the same data as shown in the screenshots: https://gist.github.com/erdmenchen/6fa928079ae89829c6da

New Post: Polar Chart - custom labels (wind directions)

$
0
0
Hello

My goal is to show the wind directions (North, East, South and West) on a Polar Chart.

How can I do this?


With kind regards,
Viewing all 2061 articles
Browse latest View live


Latest Images

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