我有一个WPF应用程序,其中我需要可视化y= y(x1,x2),其中x1,x2是线性坐标。我可以使用Oxyplot中的HeatMapSeries来做这件事,但是当我想要在同一窗口中绘制两组数据时,热图不是合适的工具。几个轮廓线序列会更好。现在,我已经尝试用与HeatMapSeries相同的方式来实现这一点,效果非常好:
public void PlotHeatMap (){
OxyPlot.PlotModel model = new PlotModel { Title = "2-D data" };
model.Axes.Add( new OxyPlot.Axes
我必须在WPF项目中实现一个简单的柱状图输出。我为它选择了OxyPlot库。设计模式当然是MVVM。相关的源代码部分如下所示。当我运行这个项目时,我得到的是一个空图表,在x轴上有类别1到5(这是正确的),在y轴上有0到100的值(这也是正确的,因为我应该显示百分比)。
数据集合(类别轴的名称为“困难”,值轴的名称为“百分比”)“正确填充了值,我已经检查过了。
但是没有显示任何列。所以我想知道我做错了什么。我根据构建了我的示例,并基于我们在大学的wpf课堂上展示的一个示例。
有什么建议吗?
问候罗兰
using System;
using System.ComponentModel;
using
我想修复一个OxyPlot错误。使用Visual Studio 2013学习版打开OxyPlot.sln时,会出现以下问题。这个但那个软件是为Visual Studio2010设计的。安装它对Visual Studio 2013学习版没有任何影响。我如何解决这个问题?
第一个不会打开的项目是OxyPlot.csproj,这听起来很重要。我想要修复的bug存在于热图中,可能在多个平台上都是通用的。我的目标是WPF,我注意到OxyPlot.Wpf.csproj被列为在VS2013中打开没有问题的项目之一。
Unsupported
This version of Visual Studio is u
我是新的WPF和我正在工作的项目要求我绘制一个清单的双XY图表。我在我的项目中添加了Oxyplot来绘制图表,但我在获得绘图时遇到了一些挑战。
我学习了Oxyplot站点上的示例(请参阅下面的代码),但我发现DataPoint只能接受x和y的双值,而不是数组或双倍列表。
如何将List<double>绘制为XValues,List<double>绘制为YValues?
namespace WpfApplication2
{
using System.Collections.Generic;
using OxyPlot;
public clas
我试图在VS调试器扩展(WPF )中使用OxyPlot库,但是即使最简单的示例也失败了。在控件构造函数中对InitializeComponent的调用引发以下异常:
System.Windows.Markup.XamlParseException occurred
HResult=0x80131501
Message=Could not load file or assembly 'OxyPlot.Wpf, PublicKeyToken=75e952ba404cdbb0' or one of its dependencies. The system cannot find th
我试图禁用自动摇摄右按钮。
using OxyPlot;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Wind
我想通过XAML定义一个HighLowSeries。由于HighLowSeries-graphs在oxyplot.wpf命名空间中不可用,所以我创建了以下类:
public class HighLowSeries : OxyPlot.Wpf.XYAxisSeries
{
public HighLowSeries()
{
this.InternalSeries = new OxyPlot.Series.HighLowSeries();
}
public override OxyPlot.Series.Series CreateModel()
当我尝试包含oxyplot组件时,我在设计器中得到以下错误。
Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteException
Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The system cannot find the file spe
AutoScale OxyPlot图表。例如,我有这样的东西。
using OxyPlot;
using OxyPlot.Axes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using S
我是新来的WPF,但我做了相当一段时间的C#。也许像我这样的类似问题已经在某个地方得到了回答,但我真的不知道用什么搜索词来解决这个问题。
因此,在我的窗口上,我使用了OxyPlot库中的一个图形。它的ItemsSource绑定到ViewModel中的一个ObservableCollection<DataPoint>。
如果我想让这个DataPoint列表在整个应用程序中可用,我能做什么?
在这种情况下,创建这样一个类是否有意义:
public class Global
{
public ObservableCollection<DataPoint> DataPo
我正在尝试在共享的OxyPlot.Xamarin.Forms项目中使用Xamarin.Forms包。我在可移植和平台特定(Android)项目中添加了带有OxyPlot包管理器的NuGet包,如:
然后,我在Android项目中初始化了OxyPlot呈现器。现在,当我尝试启动应用程序时,会生成Resource.Designer.cs文件,但是我会得到数百个错误,如下所示:
Error CS0117 'Resource.Attribute' does not contain a definition for 'mediaRouteSettingsDrawable&
我已经做了一个示例项目,试图修复这个错误,但没有运气。我做了一个简单的WPF应用程序,里面有一个Plot和一个Button。单击该按钮时,它会将X轴的最小值设置为100,将最大值设置为500。当我打开应用程序时,它可以工作,但一旦我平移/缩放图表,它就停止工作。
Minimum和ActualMinimum也是如此。下面是我的PlotModel代码和MainWindow代码。如果我的格式有问题,我深表歉意,我会尽快修复它。
public class OxyPlotModel : INotifyPropertyChanged
{
private OxyPlot.PlotM