CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 23:04:14 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"7459f79606b6e502fcd4bd321b3e359e"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=V4Pec2CWB7eCTiCRLQubMmUtL1Nskekn6xclN6bsKap9U6L1%2BHavSsb4VnyKAUajtENn9tVsZW%2FruccX%2Fkd3cHIN5da2uGydH4t0FmZCvp1liahChOuV%2BJDarX7W9HJUsdfOBRNDoYMQ2YQLSoC4HZKaE6%2BneVp0M85U6PYZvJv2i9Pd3WGT66VQIa3btBxQc3v8EqJbQQeBIJVOEFatQBjGkx0A%2Fe%2FwKWg14A%2B2xfrqh%2FIgITXbGgCELtSzS6y63RVX5F05ljXXOGF1SrAinw%3D%3D--iode6l%2F5rygcQwJG--3me754mohO1dTiOmHoz9Rg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.994506468.1753398254; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 23:04:14 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 23:04:14 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E442:1388BD:6A6B:A6F3:6882BBEE
Plotting · psambit9791/jdsp Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 44
Plotting
Sambit Paul edited this page Dec 2, 2023
·
9 revisions
The library supports Line Plots and Scatter Plots.
This step basically creates a LinePlot object and initialises an empty chart with the parameters provided.
- title: Title of the Plot
- x_axis: Title on the X-axis
- y_axis: Title on the Y-axis
- width: Width of the plot
- Height: Height of the plot
Plotting fig = new Plotting(600, 500, "Sample Figure", "Time", "Signal");
fig.initialisePlot();
- name: Name of the Signal used in the Legend
- x: Array to be plotted on the X-axis (optional)
- y: Array to be plotted on the Y-axis
- marker: Whether markers are to be plotted on the chart
double[] signal1 = {2.0, 4.0, 2.0, 3.0, 1.0};
double[] signal2 = {3.4, 6.7, 2.2, 1.6, 3.6};
double[] time = {0.0, 1.0, 2.0, 3.0, 4.0};
fig.addSignal("Signal 1", time, signal1, true);
fig.addSignal("Signal 2", time, signal2, true);
- name: Name of the Signal used in the Legend
- x: Array to be plotted on the X-axis (optional)
- y: Array to be plotted on the Y-axis
- marker: Marker to be used. Can be 'x', 'o', '+', '#', '^'.
final double[] points1 = {3.4, 6.7, 2.2, 1.6, 3.6};
final double[] points2 = {1.6, 2.0, 5.3, -1.3, 2.2};
fig.addPoints("Points 1", time, points1, 'x');
fig.addPoints("Points 2", time, points2);
For Horizontal:
- x_min: Starting point of the line
- x_max: Stopping point of the line
- y: Position where the line is drawn on y-axis
For Vertical:
- x: Position where the line is drawn on x-axis
- y_min: Top point of the line
- y_max: Bottom point of the line
// For vertical lines
double[][] verLines = {{0.0, 2.0, 3.4}, {1.0, 4.0, 6.7}, {2.0, 2.0, 2.2}, {3.0, 3.0, 1.6}, {4.0, 1.0, 3.6}};
for (int i=0; i<verLines.length; i++) {
fig.vline(verLines[i][0], verLines[i][1], verLines[i][2]);
}
// For horizontal lines
fig.hline(0.0, 4.0, 4.0);
fig.hline(0.0, 4.0, 6.7);
The image is saved as a PNG image.
- name: Filename to be saved as (extension is required)
String outputFileName = "signal.png";
// To plot on a window
fig.plot();
// TO save as an image
fig.saveAsPNG(outputFileName);
Wiki
-
Filters
- IIR Filters
- FIR Filters
- Kernel-Based Filter
- Adaptive Filters
-
Signals
-
Peak Detection
-
Transformations
-
Speech
-
Windowing
Clone this wiki locally
You can’t perform that action at this time.