Skip to content

Commit 3a397bc

Browse files
committed
demo: list all demo windows
ScottPlot/ScottPlot#4737
1 parent 54ea974 commit 3a397bc

3 files changed

Lines changed: 64 additions & 0 deletions

File tree

content/demo/5.0.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,15 @@ This window demonstrates how subplots can be given zero padding to achieve a col
208208
* Download: <a href='#download'>ScottPlot 5.0 demo</a>
209209

210210
![](/images/demo/5.0/live-finance.gif)
211+
212+
## All WinForms Demo Windows
213+
214+
_Download the WinForms demo at the top of the page to run these interactively_
215+
216+
{{<demos-winforms>}}
217+
218+
## All WPF Demos
219+
220+
_Download the ScottPlot repository on GitHub to run these interactively_
221+
222+
{{<demos-wpf>}}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<ul>
2+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/CookbookViewer.cs' target='_blank'>ScottPlot 5.0.55 Cookbook</a></strong> - Common ScottPlot features demonstrated as interactive graphs displayed next to the code used to create them</li>
3+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/MouseTracker.cs' target='_blank'>Mouse Tracker</a></strong> - Demonstrates how to interact with the mouse and convert between screen units (pixels) and axis units (coordinates)</li>
4+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/DraggableAxisLines.cs' target='_blank'>Draggable Axis Lines</a></strong> - Demonstrates how to add mouse interactivity to plotted objects</li>
5+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/DraggablePoints.cs' target='_blank'>Draggable Data Points</a></strong> - GUI events can be used to interact with data drawn on the plot. This example shows how to achieve drag-and-drop behavior for points of a scatter plot. Extra code may be added to limit how far points may be moved.</li>
6+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/AxisRules.cs' target='_blank'>Axis Rules</a></strong> - Configure rules that limit how far the user can zoom in or out or enforce equal axis scaling</li>
7+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/ContinuouslyAutoscale.cs' target='_blank'>Continuously Autoscale</a></strong> - Custom axis scale logic may be applied at the start of each render</li>
8+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/CustomAxis.cs' target='_blank'>Custom Axis</a></strong> - How to create a custom axis class that implements IAxis to create totally customizable axis panels</li>
9+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/CustomFonts.cs' target='_blank'>Custom Fonts</a></strong> - Demonstrates how to create plots that render text using fonts defined in an external TTF file.</li>
10+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/CustomMarkerDemo.cs' target='_blank'>Custom Marker Shapes</a></strong> - Demonstrates how to create plots using custom markers</li>
11+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/CustomMenu.cs' target='_blank'>Custom Right-Click Context Menu</a></strong> - Demonstrates how to replace the default right-click menu with a user-defined one that performs custom actions.</li>
12+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/CustomMouseActions.cs' target='_blank'>Custom Mouse Actions</a></strong> - Demonstrates how to disable the mouse or changes what the button actions are</li>
13+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/CustomPlotType.cs' target='_blank'>Custom Plot Type</a></strong> - How to create a custom plot type that implements IPlottable to achieve full customization over how data is rendered on a plot.</li>
14+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/DataLogger.cs' target='_blank'>Data Logger</a></strong> - Plots live streaming data as a growing line plot.</li>
15+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/DataStreamer.cs' target='_blank'>Data Streamer</a></strong> - Plots live streaming data as a fixed-width line plot, shifting old data out as new data comes in.</li>
16+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/DetachedLegend.cs' target='_blank'>Detachable Legend</a></strong> - Add an option to the right-click menu to display the legend in a pop-up window</li>
17+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/DraggableAxisSpans.cs' target='_blank'>Draggable Axis Spans</a></strong> - Demonstrates how to create a mouse-interactive axis span that can be resized or dragged</li>
18+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/DraggableCallout.cs' target='_blank'>Draggable Callout</a></strong> - Demonstrates how to make a Callout mouse-interactive</li>
19+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/HeatmapLive.cs' target='_blank'>Live Heatmap</a></strong> - Demonstrates how to display a heatmap with data that changes over time</li>
20+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/ImageBackgrounds.cs' target='_blank'>Background Images</a></strong> - Use a bitmap image for the background of the figure or data area</li>
21+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/LabelDemo.cs' target='_blank'>Font Styling</a></strong> - A tool to facilitate evaluating different fonts and the customization options for size, alignment, line height, and more.</li>
22+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/LegendOutsideBitmap.cs' target='_blank'>Legend Outside the Plot (Bitmap)</a></strong> - Demonstrates how to display the legend outside the plot by obtaining it as a Bitmap and displaying it outside the plot control anywhere in your window.</li>
23+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/LiveFinance.cs' target='_blank'>Live Financial Plot</a></strong> - Demonstrates how to display price OHLC data in real time, modifying the last bar for live updates and adding new bars as time progresses.</li>
24+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/LiveHistogram.cs' target='_blank'>Live Histogram</a></strong> - A continuously updating histogram that expands binned counts as new values are added.</li>
25+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/MicrophoneDemo.cs' target='_blank'>Microphone Demo</a></strong> - Plot real-time audio signal data from the microphone</li>
26+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/MultiAxis.cs' target='_blank'>Multi-Axis</a></strong> - Display data which visually overlaps but is plotted on different axes</li>
27+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/MultiplotAdvancedLayout.cs' target='_blank'>Multiplot with Advanced Layout</a></strong> - Custom multi-plot layouts may be achieved by assigning fractional rectangle dimensions to each subplot</li>
28+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/MultiplotAlignment.cs' target='_blank'>Multiplot Layout Alignment</a></strong> - Plots automatically resize the data area to accommodate tick labels of varying length, but this may lead to misaligned data areas in multiplot figures. Using a fixed padding resolves this issue.</li>
29+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/MultiplotCustom.cs' target='_blank'>Custom Multiplot System</a></strong> - Although the default Multiplot is suitable for most applications, advanced users may achieve extreme control by creating a class that implements IMultiplot.</li>
30+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/MultiplotDraggable.cs' target='_blank'>Multiplot with Draggable Subplots</a></strong> - Subplots may be placed very close together by setting their padding to zero. This example uses an advanced Layout system to enable mouse drag resizing of subplots.</li>
31+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/MultiplotGrowingAxis.cs' target='_blank'>Multiplot with Growing Axes</a></strong> - Demonstrates how to allow axes to grow to fit long tick labels while maintaining layout alignment across subplots in a multiplot.</li>
32+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/MultiplotSharedAxis.cs' target='_blank'>Multiplot with shared axis limits</a></strong> - Updates to axis limits of a subplot may be applied to all other subplots in the multiplot.</li>
33+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/PersistingPlot.cs' target='_blank'>Persisting Plot</a></strong> - Manipulations to a Plot on another Form persist through Close() events</li>
34+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/PlottableDrag.cs' target='_blank'>Draggable Plottables</a></strong> - Demonstrates how to create Plottables which can be dragged with the mouse</li>
35+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/PlotViewer.cs' target='_blank'>Plot Viewer</a></strong> - A Plot can be created programmatically and displayed in a pop-up window. This strategy can be used to launch mouse-interactive plots from console applications if the ScottPlot.WinForms package is included.</li>
36+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/ReportViewer.cs' target='_blank'>Report Viewer</a></strong> - A simple strategy for displaying multiple plots paired with descriptions</li>
37+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/ScrollViewerDemo.cs' target='_blank'>Plot is a Scroll Viewer</a></strong> - How to switch between using the mouse wheel to scroll up/down vs. zoom in/out</li>
38+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/SelectPoints.cs' target='_blank'>Select Data Points</a></strong> - Demonstrates how to use mouse events to draw a rectangle around data points to select them</li>
39+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/SharedAxes.cs' target='_blank'>Shared Axes</a></strong> - Link two controls together so they share an axis and have aligned layouts</li>
40+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/ShowValueOnHover.cs' target='_blank'>Show Value Under Mouse, Scatter</a></strong> - How to sense where the mouse is in coordinate space and retrieve information about the plotted data the cursor is hovering over</li>
41+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/ShowValueOnHoverMultiple.cs' target='_blank'>Show Value Under Mouse, Multiple Scatter</a></strong> - How to sense where the mouse is in coordinate space and retrieve information about the plottable and data the cursor is hovering over</li>
42+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/ShowValueUnderMouseSignalXY.cs' target='_blank'>Show Value Under Mouse, SignalXY</a></strong> - Demonstrates how to determine where the cursor is in coordinate space and identify the data point closest to it.</li>
43+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/SignalPerformance.cs' target='_blank'>Scatter Plot, Signal Plot, and SignalConst</a></strong> - Demonstrates performance of Scatter plots, Signal Plots, and SignalConst on large datasets.</li>
44+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/SignalXYDrag.cs' target='_blank'>Mouse Interactive SignalXY Plots</a></strong> - Demonstrates how to create SignalXY plots which can be dragged with the mouse, and also how to display informatoin about which point is nearest the cursor.</li>
45+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/TransparentBackground.cs' target='_blank'>Transparent Background</a></strong> - Plot controls may be made transparent so the Form beneath it can shine through</li>
46+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WinForms%20Demo/Demos/OpenGL.cs' target='_blank'>OpenGL Example</a></strong> - Compare the standard (CPU) vs OpenGL (GPU) rendering of plot controls</li>
47+
</ul>

layouts/shortcodes/demos-wpf.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<ul>
2+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/tree/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WPF%20Demo/DemoWindows/Quickstart.xaml.cs' target='_blank'>WPF Quickstart</a></strong> - Create a simple plot using the WPF control.</li>
3+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/tree/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WPF%20Demo/DemoWindows/DisplayScaling.xaml.cs' target='_blank'>Display Scaling</a></strong> - Demonstrates how to track mouse position on displays which use DPI scaling.</li>
4+
<li><strong><a href='https://github.com/ScottPlot/ScottPlot/tree/main/src/ScottPlot5/ScottPlot5%20Demos/ScottPlot5%20WPF%20Demo/DemoWindows/MultiThreading.xaml.cs' target='_blank'>WPF Multi-Threading</a></strong> - Demonstrate how to safely change data while rendering asynchronously.</li>
5+
</ul>

0 commit comments

Comments
 (0)