Questions tagged [plotting]

Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Animate 3D Plot for linear model output

I am trying to animate a linear model which I have fitted using the following code: ...
1
vote
1answer
29 views

How to use output of NSolve for further calculation and than plot?

I am trying to plot the output using these linear equations but finding some difficulty. Here I am using the output of these linear equations and after that using them in another formula and after ...
0
votes
1answer
34 views

Why does my $y$ axis extend below $y=0$?

I have an issue where my y axis is drawn too far down. I feel like there should be a question out there asking about this, but I wasn't able to find anything. Is there any way to make the y-axis only ...
-1
votes
1answer
39 views

Plot function f(x) vs first three terms of fourier expansion

I have a function f(x): f[x_] := Sum[(2*(2-2Cos[n*[Pi]]-n*[Pi]Sin[n*[Pi]])/(n^(3)*[Pi]^3))*Sin[n*[Pi]*x]] I want to plot this function vs. the sum of the first ...
7
votes
4answers
129 views

How to differentiate the plots with different line style when the functions are touching x axis simultaneously

I am trying to represent four functions with different plot styles, But when the functions touch x-axis, it is becoming difficult to distinguish the functions. how to overcome this problem?. I tried ...
0
votes
0answers
24 views

How to compare and visualize two 2-dimensional time-dependent vector fields?

Supposing we have two 2D vector fields on $(x,y)$, $\boldsymbol{f}$ and $\boldsymbol{g}$, which are defined by two InterpolatingFunction that obtained from ...
5
votes
2answers
82 views

Different background colors on different dates in DateListPlot

I have a time series plot DateListPlot[{1, 1, 2, 3, 5, 8, 11, 13, 17, 21}, {2000, 8, 6}] I would like to have a background which is white upto Aug 10 and yellow ...
0
votes
1answer
22 views

Getting blank output in VectorPlot3D

I am trying to do a vector plot of a given vector field for which I wrote following code ...
2
votes
1answer
49 views

how to add labels of points next to it based on index in ListPlot

I have a list of some points. I plotted each point and its closest surrounding points. ...
0
votes
0answers
36 views

Plot solutions to differential equations

I have a combined system of two differential equations. I would like to know how to plot them
2
votes
0answers
21 views

Is there a better way to space ChartLabels?

I am looking for a better way to specify the spacing between ChartLabels when using BarChart. My current implementation uses ...
1
vote
1answer
63 views

NDSolve Unable to Produce Solution for Second-Order Differential Equation [closed]

Below is the equation that I am trying to solve and ultimately plot: $$y''+5y'+6y=e^{-3x}; \;y(0)=-\frac{1}{2}, \; y'(0)=0, \; x \in [0,2]$$ To solve this on Mathematica, I followed its help page and ...
3
votes
1answer
47 views

Legends of colors with ListPlot

I'm taking this example in the documentation : ...
0
votes
1answer
28 views

Why the Plot[] is plotting the result of expression evaluation always on y axis of coordinate plane?

I have a code: Plot[-3*x + 2, {x, -10, 10}, AspectRatio -> Automatic, PlotRange -> {{-20, 20}, {-20, 20}}] output: and it does not matter what will be ...
3
votes
1answer
26 views

ListContourPlot not behaving as expecting, contours do not match up with data

I'm currently doing some data analysis and I'm struggling to get ListContourPlot to work as expected. Here is a MatrixPlot of my data (just a list of lists): By eye it seems like adding contours to ...
1
vote
0answers
37 views

ListPoinPlot3D works but ListPlot3D does not

I don't understand what is going on. The same table, plotted with the tool ListPointPlot3D gives the desired output. But plotted with ...
0
votes
1answer
61 views

How to plot a line made by the touching points of two function?

suppose we have the functions f[x,y] and g[x,y] defined as, ...
0
votes
1answer
57 views

How to make such panel plots?

I'm trying to plot two functions (X1 and X2) in a single plot as shown in the example ...
0
votes
0answers
14 views

ListDensityPlot odd behavior

I have two lists in the form data1={{x1,y1,f[x1,y1]},.....} and data2={{x2,y2,f[x2,y2]},.....}. Each table has 672 elements, and ...
0
votes
0answers
34 views

RegionPlot (or otherwise) with exclusions

I would like to plot something like (just a little toy example, I have many of these): RegionPlot[x != 1 \[And] -5 < y < 9, {x, -10, 10}, {y, -10, 10}] I ...
5
votes
3answers
114 views

How to create grid lines as dots?

I need to denote only dots at grid crossings. How to make this in Mathematice? GridLinesStyle does not contain appropriate option.
0
votes
1answer
42 views

How to 3DPlot a triple integral in cartesian coordinates

I am trying to make a 3d graph of the triple integral in cartesian coordinates. I am positive that I have been filling out the correct parameters but I am unsure what could be wrong. Additionally I ...
0
votes
2answers
76 views

How to plot the phase portrait of a second-order differential equation?

I am relatively very new to mathematica, but I have been trying to figure this out for hours. I have a second-order differential equation, $$ ay''+by'+cy=0 $$ and I have converted it into a first-...
0
votes
1answer
32 views
0
votes
0answers
39 views
2
votes
2answers
29 views

Inputting a function into frameticks with ArrayPlot

Here's some data: data={{1,2,3},{2,3,4},{3,4,5}} Here's the data plotted: ArrayPlot[data,FrameTicks->Automatic] I want to ...
0
votes
0answers
36 views

How can I plot this function with multiple indices?

$\prod_{p=4}^{10}\prod_{q=1}^{p} \Big[|\sum_{j^p_q=4}^{p+1} (i Sin \theta)^{|p-j^p_q|}|\Big]$ The summation is indexed by $j^p_q$, where p and q are defined by the product rule. I was planning to ...
0
votes
1answer
35 views

How to smoothen the mesh lines of a translucent sphere

This code generates a nice sphere with distorted mesh lines, in the sense that they are not smooth enough. One can clearly see many disjoint lines trying to imitate a curve. I would like a smoothened ...
4
votes
2answers
111 views

Using Manipulate[] to manipulate Plot[] min and max values

I have code: Plot[y = -3*x + 2, {x, -10, 10}, AspectRatio -> Automatic, PlotRange -> {{-20, 20}, {-20, 20}}] output: Now I want to use ...
0
votes
0answers
34 views

How to plot like Plot[Expand[Solve[some equation]]]? [closed]

I have code: Expand[Solve[6 x + 3 y == 5, y]] output: $\left\{\left\{y\to \frac{5}{3}-2 x\right\}\right\}$ I also have code: ...
1
vote
1answer
27 views

Drawing a Sphere and ParametricPlot3D [closed]

I want to draw a sphere and a parametric curve, but the output doesn't show the parametric curve. ...
0
votes
1answer
23 views

Proper AspectRation and PlotRange options with Graphics[]

I have code: ...
0
votes
6answers
71 views

Plotting horizontal and vertical lines

If I run: Plot[y = 10, {x, -3, 5}] output: If I run: Plot[x = 10, {y, -3, 5}] I am getting exactly same output as in ...
2
votes
1answer
40 views

How can I fix the alignment of complex combinations of GraphicsGrid / GraphicsRow plots?

I am having problems joining multiple plots using GraphicsRow and GraphicsGrid. The issue is that Mathematica (v12.1) rescales arbitrarily my plots when I try to combine them. The issue arises when I ...
2
votes
1answer
46 views

Is it possible to use `ContourPlot` for specific eigenvalue of a large matrix Mn(x,y)?

I have a large matrix, say En En, as a function of two variables x and y which has ...
-1
votes
0answers
45 views

How to plot the solution of Systems of Differential Equations vs time?

I,have recently downloaded a Mathematica code.This code prints (Phi^2) for each time, But i'm trying to integrate "n*phi^2" over [-q q] for each time step and plot it vs time (ex:t= 0:1000).How should ...
4
votes
3answers
59 views

Plot a Complex Polar Number as Magnitude Arrow and Phase Dot on a Circle

Given a complex number, z = r*exp(i*psi), how can I use Mathematica to plot the magnitude and phase on a circle? I've put together an example using the following ...
0
votes
1answer
26 views

Is it possible to use other varibles to color a line when using ColorFunction?

I know that in Plot or ListLinePlot functions, we can color the line by specify the ColorFunction option, and then the line will ...
1
vote
0answers
35 views

X,Y, Z Coordinate

I require the X, Y and Z coordinates separately, in 3 different columns. I have tried with, Table, Grid and Matrix. Please let me have an idea how to perform it. Thanks image =; cc = ColorConvert[...
5
votes
2answers
97 views

How can I translate months in DateListPlot?

In this plot example, I get the months in English abbreviation: DateListPlot[{#, RandomReal[]}&/@DateRange[{2020,1,1}, {2021,01,31}, "Month"]] How can I ...
0
votes
0answers
36 views

Having trouble drawing a llama using a Fourier transform in Mathematica. Works fine in p5.js, though

I am trying to draw llamas with the discrete Fourier transform on sample complex points of an SVG image of a llama. In my Javascript code (using the p5js. library) I sample points from the SVG and ...
4
votes
2answers
257 views

How to plot a system of recurrence equations

I have the following code working well ... but I would then like to plot M[k] and L[k] on the same axes with k along the horizontal and M[k] and L[k] values along the vertical. The graph I'm looking ...
5
votes
2answers
134 views

3d system: stream plot and function

I have a 3D ODE-system $$x'=f_1(x,y,z),\quad y'=f_2(x,y,z),\quad z'=f_3(x,y,z) $$ living on the sphere and an equilibrium $(x_0,y_0,z_0)$. I would like to plot a function $V(x,y,z)$ to see whether t ...
0
votes
2answers
44 views

Plot the solution for system of ODEs

I have solved this example available in MATHEMATICA: ...
1
vote
1answer
68 views

Insets hides behind a surface

MacOS, Version 12.1 In the following code, the "Hi" is above the surface, but you still can't see it from above. ...
2
votes
2answers
56 views

PlotRange prevents PlotLabels from displaying

(I am using MMA v.12.0.0 OSX.) It seems like PlotRange is preventing PlotLabels from displaying the labels of the curve which ...
0
votes
0answers
50 views

Floating point problem with plotting huge function [closed]

I am trying to plot a complicated function. In the end the plot does not look well and it seems like there is a problem with the precision. Short explanation for the following code: First I do ...
1
vote
1answer
68 views

Stuck at trying to plot a dispersion relation EM wave

We are considering the matrix transformation of an electromagnetic wave through periodic media. The constant is given as: ...
9
votes
2answers
341 views

How can I plot a parametric equation with ±?

I want to draw a parametric equation with ± like the figure below: But I don't get the result I want when I run the following code. What can I do to get it? ...
11
votes
1answer
129 views

Mottled appearance of ContourPlot3D with transparency

I'm trying to make a ContourPlot3D that needs to be transparent. With transparency, however, something odd happens. With ...

1
2 3 4 5
223