Questions tagged [scottplot]

For questions relating to the .NET plotting library and its interactive counterparts.

ScottPlot is a scientific plotting library for .NET. It can be used to create static images or interactive application.

Currently, the following platforms have official interactive user controls for ScottPlot:

For questions related to the use of a user control please specify which user control you are using and apply the appropriate tag.

19 questions
1
vote
1 answer

How to control the line thickness/width in ScottPlot (within WPF)

I'm using ScottPlot within a WPF app; specifically, I'm using Plot.AddSignal() to add my signals to a graph. I see that the width of vertical or horizontal lines can be controlled by the width property, as follows: Plot.AddVerticalLine(x:10.0,…
Mhatami
  • 37
  • 6
1
vote
1 answer

ScottPlot and WPF background rendering

ScottPlot is used to display a real time chart with 10'000+ data points. Datapoints are added every seconds, so the chart needs to be updated. A timer perform the refresh every seconds, however, it freezes the whole UI for a few ms, which is…
Damien
  • 1,492
  • 10
  • 32
1
vote
0 answers

How to plot a grayscale image with a 2D array in C#?

I wanted to plot my array (double[50,50]) in C# in similar way, as it is done in python. import matplotlib.pyplot as plt import numpy as np X = np.random.random((100, 100)) # sample 2D array plt.imshow(X, cmap="gray") plt.show() How can I do…
vspredator
  • 33
  • 4
1
vote
1 answer

Hide plot in WPF ScottPlot

Lets take the most basic code: int pointCount = 10000; double[] x = DataGen.Consecutive(pointCount); double[] sin = DataGen.Sin(pointCount); double[] cos = DataGen.Cos(pointCount); WpfPlot1.Plot.AddScatter(x, sin); WpfPlot1.Plot.AddScatter(x,…
user15515307
1
vote
1 answer

scottplot xticks not showing

I have the following graph, where the labels defined through a call to xticks() are not showing for scottplot, anyone knows why? Cf. picture hereafter and corresponding code snippet var plt2 = new ScottPlot.Plot(800, 600); …
Steven De Bock
  • 429
  • 4
  • 21
1
vote
1 answer

ScottPlot does not plot when data template is used

When ScottPlot WPF control is placed inside a data template and used for plotting, nothing gets rendered. I'm puzzled as to why the following code would not work: This is my view:
user3134182
  • 77
  • 1
  • 7
1
vote
1 answer

read audio wav data and plot signal waveform

I'm task with analyzing a wav audio file (filtering, FFT, etc.) in C#. Currently I'm stuck trying to properly convert the bytes to double in order to plot the audio signal of the waveform with scottplot, I have tried using Naudio library but didn't…
kat N
  • 81
  • 2
  • 11
0
votes
1 answer

Using ScottPlot in WPF

I'm quite new with WPF and data binding. I am creating a bar chart using ScottPlot in WPF User Control. After studying the ScottPlot website I am still unable to bind my chart to the code behind. I imported the ScottPlot chart into my UC and named…
0
votes
1 answer

Scottplot axes not updating after AxisAuto()

I am plotting some data in a C#/WinForms app using ScottPlot. I need to switch between a heatmap view and time series view, which I select using radio buttons. If I plot the time series view first, the axes are scaled correctly and I can see all of…
0
votes
1 answer

ScottPlot does not generate an image file using SafeFig

I am writing a test for my simulation, and saving my results to an array of doubles. As explained before, my results are not being saved to the desired format. Here is the code: using ScottPlot; using System.Collections.Generic; using…
0
votes
1 answer

Change plot line thickness in ScottPlot

How can I change the plot line thickness in ScottPlot? And preferably also point thickness. I've tried: var plt = new Plot(1000, 500); plt.AddScatter(times, temperatures, Color.Blue); plt.LineWidth = 4; But LineWidth apparently only works for…
Val
  • 1,548
  • 1
  • 20
  • 36
0
votes
0 answers

Scottplot Library add last point to plot/ Better library to plot live data than Scottplot C#

I'm using scottplot in one of my projects ... the application is written in C# and it receives every 20ms a INT value from the serial interface...I store the INT value in a array with 1080 points then i plot the graph...but the plot takes about…
mikado
  • 1
  • 2
0
votes
0 answers

In Winform use SunnyUI and ScottPlot Rendering problems

The SunnyUI interface library in Winform is beautiful, and the ScottPlot chart library has good performance. However, if both are used in the same project, the SunnyUI interface rendering will be distorted. The authors on both sides said that please…
ZhuYajun
  • 1
  • 1
0
votes
1 answer

ScottPlot places unnecessary markers on (0,0) and (x,0) coordinates

I have been trying to plot a simple line in ScottPlot, which starts at (0,y1) and ends at (x,y2) where both y1,y2 != 0. However, ScottPlot still places markers at the coordinates (0,0) and (x,0) . How can I make the chart without these coordinates…
0
votes
0 answers

I'm trying to place a temperature and date from a SQL database into a Winforms app using ScottPlot, but it keeps placing a point in the year 1900?

I have created a MySQL database which receives data from an arduino, now what I want to do is place that data into a nice chart in Winforms using ScottPlot. It does this correctly except for the fact that it keeps placing the starting point in the…
1
2