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
1
vote
0answers
7 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, $$ x''+5x'+3x-x^2=0 $$ and I have converted it into a first-...
2
votes
2answers
25 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
1answer
29 views

contour plot 3d fix the problem [closed]

...
4
votes
2answers
236 views

Combine TimelinePlot and DateListPlot

I want to combine a TimeLinePlot and a DataListPlot. For both I use the same periode. The problem is that both X-axis differ ...
0
votes
0answers
34 views
4
votes
5answers
127 views
+200

Unexpected behavior of `Exclusions` in `ParametricPlot`

I'm using Mathematica to prepare some teaching materials based on the discussion of the damped, driven pendulum in Chapter 12 of Taylor's Classical Mechanics. This involves using ...
5
votes
2answers
124 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
0answers
30 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 ...
4
votes
2answers
100 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 ...
2
votes
1answer
31 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 ...
0
votes
0answers
23 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 ...
2
votes
1answer
44 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 ...
4
votes
3answers
55 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 ...
1
vote
1answer
25 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
0answers
30 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: ...
0
votes
6answers
64 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 ...
0
votes
1answer
19 views
0
votes
1answer
53 views

Problem With Filling

I am plotting the graph of the logistic equation in a manipulate. My borders range from {x, 0, 100}, {y, 0, 100}. I would like to fill the background of the plot with a light grey color, almost ...
-1
votes
0answers
35 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 ...
1
vote
1answer
65 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: ...
5
votes
2answers
95 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
1answer
21 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 ...
2
votes
1answer
70 views

Slope Fields in Mathematica and Sketching Appropriate Solution Curves

How would I plot the differential equation dv/dt = 32-1.6v, where v(0)=0 I also need to solve for the limiting velocity. I am having a hard time figuring out how to find the limiting velocity. I ...
1
vote
0answers
34 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[...
1
vote
1answer
67 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. ...
4
votes
2answers
237 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 ...
2
votes
1answer
31 views

defining constants and plotting them

I want to plot some functions and define some variables as constants, apparently the variables are not being recognized as constants. I'm kinda new to coding so this is very difficult to me. this is ...
9
votes
2answers
323 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? ...
0
votes
0answers
35 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 ...
5
votes
2answers
195 views

Why can't an annulus be mapped as a rectangle

The following code is used to map an annulus to a rectangle: ...
1
vote
0answers
41 views

plot discrete system by mathematica

if I have a discrete system x(n+1)= 0+y , y(n+1)= -0.5x +0 The fixed point (0,0) is center by Jacobian., I do not know how Plot this by using Mathematica code to get center. I am thankful if any one ...
0
votes
2answers
43 views

Plot the solution for system of ODEs

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

Combining two plots with different x-axes and not labeling the x-axis

Below two figures are just for example. What should I do if I want to plot the two figures below on the same plot with the same y-axis only that the x-axis is also same but not labeled such that. As ...
11
votes
1answer
117 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
vote
1answer
42 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
49 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 ...
5
votes
2answers
176 views

Plot geologic profile of layers

I am trying to plot a set of layers with different values of densities (density profile). Geometry ({x,z} values) of 15 interfaces of layers look like this: while ...
1
vote
1answer
105 views

On drawing Mohr's circle of spatial stress state with direction vector parameters l and m as parameters

The figure below shows the micro tetrahedron in an elastic body in equilibrium: In the textbook, I see the expressions of normal stress($\sigma_{v}$) and shear stress($\tau_{v}$) on the differential ...
1
vote
1answer
59 views

How do I split up a list of data points into invervals and assign values to those intervals?

So I have a data set for chess and our goal is to plot the difference between the rating difference versus white's win rate. I want to subdivide the x-axis into intervals like (-10, 0) (10,20) (20,30)...
13
votes
2answers
402 views

Texture or shading to avoid requiring color printing

I am producing a graphic that is mostly black lines on a white background but I need to identify some areas of the graph that belong to two phenomena and I currently use a blue and a red shade for ...
0
votes
0answers
75 views

Why is my plot hatched and how do I remove the hatched part of the plot? [closed]

Sorry for asking simple questions, I tried to solve it myself but I couldn't. I want to plot the following code, but the plot is hatched. ...
3
votes
2answers
74 views

ListPlot curves exceed PlotRange, thus overflowing the Frame

When I restrict the PlotRange in ListPlot and its variants (ListLogPlot, ListLogLinearPolt, and ListLogLogPlot), the curves are drawn well beyond the PlotRange, and thus well outside the Frame. Is ...
5
votes
0answers
159 views

Plotting severely distorted in V12.1 but works in V12

The following code can plot a surface in 3D (the plot) and also makes a row of two plots using ...
1
vote
1answer
54 views

How to recognize real parts of a function by plot?

I have this function f[x_] := ((2 x Cos[4 x] )/(1 + (x^2) ) + Sqrt[ Cot[3 x]^4 - (Cos[4 x]^2) (Csc[3 x]^2) ])/(4 /(x^2) + Cot[3 x]^2); where $0<x&...
1
vote
0answers
40 views

Plotting NDSolve solution does not cover all the integration domain

I have a set of four coupled Ordinary Differential Equations and I would like to solve it numerically with NDSolve. The explicit forms of these equations are not ...
9
votes
1answer
192 views

How does the undocumented option ScalingFunctions work with Plot versus ListPlot?

Say that I want to reverse the x-axis of a plot, there are a few solutions on here (like those in the answers here and here) but most of them are valid only for a ...
2
votes
1answer
36 views
3
votes
1answer
60 views

Add tick at zero with label 0

I am trying to get a label "0" at the origin to display. Currently it is not displaying (code below). Other tick labels work fine, just not at zero. I suppose I could use ...
2
votes
1answer
45 views

Adding a second axis with different scale [duplicate]

Let's consider the following simple example Clear["Global`*"]; S0 = Plot[Sin[x], {x, -10, 10}, Frame -> True] Now, I want to add a second horizontal axis (at ...
3
votes
1answer
38 views

SetOption for AxesStyle and AxesLabels differently

I can set the Options for Plot as: ...

1
2 3 4 5
223