# Questions tagged [plotting]

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

15,957 questions
Filter by
Sorted by
Tagged with
108 views

### Parameterization of boundary curve in Plot3D

I am considering a function of the form: u0 = p[1](Q1[1] - K1)/(p[1] - K1 + Sqrt[(K1)^2 - m1^2](1 - 2*alpha)); with p[1],Q1[1], and m1 being constant (set p[1] = 1, Q1[1] = 1/2, m1 = 0.1). Therefore,...
72 views

### Problems plotting labels

When i plot labels on a graph, then the text "field" is much bigger than the text itself. It gives some problems for me regarding placing the labels properly. Can someone help me fix this? see code ...
• 23
126 views

### Animated wrapping line and wrapping cylinder

I am trying to draw the following situation using any graphic program but I couldn't since I don't know how to make the animation. So your help is greatly appreciated. So my picture consists of two ...
• 161
29 views

### Gap between line and marker

i am doing very simple thing when I run this line: ListLogPlot[Table[1/x, {x, 10^Range[-2, 1, .1]}],PlotMarkers -> Automatic, Joined -> True] I get ...
• 113
65 views

### Generate vector field pointing to minimum intensity (black)

I have a black and white image and want to plot a vector field that points to the highest and nearest minimum intensity value (something like the arrows shown in the image). Similar to Gradient filter ...
• 101
665 views

### Why does ListSurfacePlot3D yield a different surface fit than using Python code for best-fit quadratic curve (2nd-order)?

Using the same data, I obtain different surface fits on Mathematica (using ListSurfacePlot3D) and Python (using a code for best-fit quadratic curve (2nd-order)). Here's my code on Mathematica: ...
• 97
82 views

### Plotting correlation between two metrics that contain hundreds of thousands of data points

I wanted some feedback on what is thought of as best practice in terms of showing correlation between two metrics in terms of minutes vs minutes when both metrics contain a large amount of data points ...
57 views

### Plotting data imported from Excel and overlaying it on a disk

I'm new to Mathematica and I'm trying to get the hang of plotting data from an external CSV file. The data is just x, y, z values from an experiment I ran. I would ...
113 views

### How to make ternary Plot 3D in a different situation?

Owing to xzczd, I could make ternary plot with the following code: ...
56 views

### Problem with a plot

I have a function which has a dependency on x alone. I wanted to find the roots of this equation, so I tried plotting the equation, but I am getting the error "integer expected at position 2 in Surd[0....
• 1,709
107 views

### Plotting a specific row and a subset of this row's columns

I have the following data. Now, I not only wish to plot a specific row of the data, but also a subset of the columns in the chosen row. I can work out the first part, but plotting a specific part of ...
• 2,685
62 views

### How can I fit my histogram with appropriate distribution?

I got this list: ...
56 views

...
• 3,170
43 views

### RegionPlot with FindMaximum

I don't understand why each time I'm launching this computation Mathematica buggs and I get a message from Windows that the Kernel stopped working... I'm trying to get a map of where the value of ...
• 1,265
74 views

### DateListPlot show point with a thin bar

I have a list of date points and I want to show each point with a single verticle line that connects the point with the x-axis. I imagine that the solution should be the same as for a ListPlot.
• 981
108 views

### How can I exclude a point from a Region Plot? [duplicate]

I want to exclude the point {0,0} from: RegionPlot[0 < x^2 + (y^2)/4 <= 1 , {x, 2, -2}, {y, 2, -2}]
44 views

### Fixing the plot region absolutely

I have seen many posts where people are asking to scale the plot region with another plot, especially for when people are using side-by-side plots. Is it possible to set the plot region absolutely. ...
• 2,520
96 views

### RegionPlot fails

Consider a function f[x_,y_]:=NIntegrate[g[x,y,z],{z,1.1*x,3000}] where g[x,y,z] is some function. The function f[x,y] is smooth and works perfectly when Plot it....
• 5,827
49 views

### How to plot for imported data while performing some operations on different columns?

I have imported an Excel file, then I did multiplied different numbers with different columns; ...
• 149
160 views

### Plotting a transcendental equation [duplicate]

I would like to get this graphic: from this article. Here $\kappa$ and $\varepsilon_{dd}$ are related by: ...
80 views

### find gravity acceleration (g) using FindFit

I need some help again, with this simple exercise: Use the data to determine g, but this time use the functional form T = 2 pi Sqrt[L/g] for the period T of a ...
44 views

### 3D plots don't show box or axes in 11.3 on Linux [duplicate]

I am using Mathematica 11.3 Student Edition on Linux (Ubuntu). When I make a 3D plot using Plot3D or ParametricPlot3D or any ...
64 views

### Graphics not plotting in new version

There is something in the old version 8 that does not update graphics into my newer Version 11: ...
• 3,170
55 views

### Different integration results when TrigToExp used

I am trying to do a double integral over a domain $x \in (\theta_1,\theta_2), y \in (0,\theta_1)$. Instead of doing a definite integral I am doing an indefinite integral and taking limits. All that is ...
• 183
51 views

### Manipulate plot of a system of PDEs with NDSolve

Modeling 1D diffusion of an enzyme, e, through a sphere with substrate, s, I arrive at the below equations: I then pass these equations to NDSolve, Evaluate at a range of r and t and Plot and ...
604 views

### Skip legend entries when using the PlotLegends option in Plot[]

(This question seems so basic that I have a hard time believing it hasn't been asked yet, but I couldn't find it, so here goes.) Is it possible to skip items in the legend when using the ...
• 347
46 views

### Point to integer conversion

I have a plot p1, and I am extracting the points where it intersects the x-axis by Cases[Normal[p1], Point[___], {1, Infinity}] It returns the output {Point[{...
294 views

### How to draw a triangle shape function plot with shape function area being (s, t,1 - s - t)

I want to draw a dynamic graph showing the varying shape of a triangular element with the change in the point P[x, y] as shown below. I want to find the shape ...
41 views

My code is: ...
43 views

### Is this second order D.E. is solvable

DSolve[{(2.248*10^12) x^2 y''[x] + (4.496 x - 50.535)*10^12 y'[ x] - (1.17977*10^32) (x^3 Exp[-2 x] y[x] == 0, y[10] == 10^-5.3}, y[x], x] You can use b.c. ...
122 views

### Extracting used plot range from plot [duplicate]

How can I extract the used plot range from a plot? I create a plot: ...
• 1,241
97 views

### Problems with ParametricPlot

I am trying to produce a diagram like this: However, when I try to do it in Wolfram with this code: ...
• 115
119 views

### Plotting a paraboloid and a plane

I am trying to visualize the intersection of a paraboloid and and a plane. My paraboloid is of the form $$f(x) = \frac{1}{2} x^\top A x - b^\top x$$ where $x$ is a vector and $A$ is the pd matrix A =...
• 101
59 views

### Bug in Contour Plot [duplicate]

I think the following are bugs: ContourPlot[y (x - 1)^2 == 0, {x, 0, 2}, {y, -2, 10}] ...
• 369
38 views

### Using Interpolating Function [duplicate]

I'm a bit of a noob with mathematica. I'm having a problem trying to use values from my solution. I've used ND solve to integrate ODEs. I have ...
• 372
127 views

### Manipulate shows an empty plot [closed]

My Manipulate expression Manipulate[ Plot[100[x]^2/(T^4 (Exp[x/T] + 1)), {x, 0, 30}], {T, 1, 4}] shows an empty plot. ...
44 views

### Syntax and usage of DSolve

While solving differential equations with Mathematica I got into this excercise: Consider pendulum of length $l$ and $m=1$ affected by $g=9.80665 m/s^2$. The oscillation point of this pendulum isn't ...
175 views

### Bifurcation diagram with first-order differential equation

I have code from question 96004, and I made same changes: ...
• 47
56 views

### Plot from cartesian to polar coordinates using ListDensityPlot

I am trying to plot my data using ListDensityPlot. But when I plot them. I succeeded to have my data in polar cooridnates but in the middle around zero all my data are white which should not be (see ...
• 399
151 views

• 131
25 views

### Acquire a single-variable function by slicing a 3d graph along a given line

Consider my Calculus 2 math problem: Given a function f[x,y]=x^2-3xy and two vectors a = {1,2} and b = {1,1}. Spanning a linear ...
• 11
42 views

### How can I get the contour shading in two contour plots to correspond? [duplicate]

Link to code. When I ploted the first contour map shown below, I found Z = 1 is corresponding to Canary yellow. But when I ploted another contour map, the same ...
• 39
77 views

### How to plot a displacement filed of three dimensional body？Code help

Now I know a deformation of a three dimensional body. For example there is a displacement field of a cuboid({{x,0,1},{y,0,1},{z,-0.1,0.1}}): displacement field: <...
• 47
19 views

### Plot of list of functions have the same colour [duplicate]

When I execute Plot[{(# + 1 &)[x], (2*# + 3 &)[x]}, {x, -2, 2}] I get the following plots of different colours (as per the documentation): But when I ...
• 5,251
93 views

### Manipulate plot and sound of a function simultaneously

I've an amplitude function (see below). I want to manipulate both a plot of this function and the sound it makes with the same sliders. Is this possible? ...
49 views

### Unexpected breaks in a smooth plot

I have the following code leading to a broken plot. However, I physical intuition (based on the problem I am dealing with) says that there should be a continuous curve. ...
• 663