使用 Oxyplot.Wpf 创建时间序列图并以 WPF 形式显示。 有一个这样的 DateTimeAxis
DateTimeAxis dta = new DateTimeAxis()
{
Key = "DateTimeAxis",
IntervalType = DateTimeIntervalType.Months,
MinorIntervalType = DateTimeIntervalType.Days,
StringFormat = "dd/MM/yyyy",
Position = AxisPosition.Bottom,
Minimum = DateTimeAxis.ToDouble(startDate.AddDays(-1)),
Maximum = DateTimeAxis.ToDouble(endDate.AddDays(1)),
Title = "Datum",
FontSize = 15,
AxisTitleDistance = 0,
};
WPF Form for the Axis 的结果被适当地缩放例如(跳过一个月)
但是当我使用 OxyPlot.SkiaSharp.PdfExporter 打印绘图时 这样
var pdfExporter = new OxyPlot.SkiaSharp.PdfExporter { Width = 842, Height = 421 };
pdfExporter.Export(modelSeismikTag, stream);
当日期范围增加时,标签最终会重叠得越来越多,因为每个月都会显示
有没有办法像在 wpf 中一样缩放它