# Questions tagged [plotting]

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

10,524 questions
Filter by
Sorted by
Tagged with
6 views

### Find Unknown coefficient using Contour plot

I have I really complicated equation, but for simplicity lets assume my function is F(x,y,z)= ax+by+c*z, where a, b and c are some unknown constants. From experiments we know that at: x=3, y=2, z=1 ...
24 views

### Graphing f '(x) from the graph of f(x) [on hold]

Let f(x) = (x^2-4)/(x^2+1). a) Use the appropriate Manipulate[ ] command from the example in this lab to graph f '(x) from the graph of f(x) using - 3 < x < 3 and a range of -5 < y &...
16 views

### How to manipulate SphericalPlot3D as Graphics object?

I'm kind of new to Mathematica so this may sound obvious for some people. I'd really thank for your help. I'm trying to plot a lattice. At each point there is an atom. The lattice is created as ...
33 views

### Showing list of parametric plots

I can make two plots and show them , but I dont know how to make n plots and show them, example : ...
54 views

### Waterfall plot of a two dimensional function

I have the following plot, and I need to draw a waterfall plot of this. Does anyone know how I can make a waterfall plot in Mathematica? ...
24 views

### How to draw three different surfaces in a single plot where each surfaces are defined in different region?

Suppose I want to plot 3 surfaces, z=xy+y^2, x=4 & x+2y=4 together so that x=4 plane will be in the upper region of z=xy+y^2 surface and x+2y=4 plane will be in the lower region of z=xy+y^2 ...
44 views

### Why is the plot not showing up?

Does anyone know why my plot is not showing up? I get a recursion error. ...
41 views

### Need help with ParametricNDSolveValue for ODE with two variables and Do-loop

I' m trying to solve a tricky 2-nd order ODE with ParametricNDSolveValue for boundary conditions (BCs) Y = 0 at 1.6 and ...
131 views

### Plotting single vectors in parametric plots

I am trying to plot something like the Frenet-Serret Formulas using a parametric plot, like this: ...
250 views

### Reverse color of overlapping points?

Is there a simple way to change the color of the region where two Points overlap? For example in ...
69 views

### How can I color the elements of the largest strongly connected component in ListPlot

The following Code: ...
510 views

### Can Mathematica achieve this diagram?

Can Mathematica be used to create diagrams of drift diffusion of the kind shown, including histograms showing the response-time distributions? The distributions capture the time taken by a random ...
66 views

### 3D plot of a heat distribution in a cube

I have a .csv file with temperature values in the nodes of the cube. The cube size is 100х100х100 (.csv file contains 1.000.000 values), while $0 \leq x,y,z \leq 1$. How can I plot a 3D heat map of ...
116 views

### Plotting 3D energy bands

I'm having a problem trying to plot a 3D energy band structure. Having a function of 3 variables (energy) for example: f[x_,y_,z_]:= Cos[x]+Cos[y]+Cos[z] What i ...
46 views

### Plotting works with @ but not with […] [on hold]

Why is it that I can plot the function of a series if i define it with @: f1[x_] := Normal@Series[f[u], {u, 0, 2}] /. u -> x but not when I define it with [......
57 views

I am trying to extend the Harper equation from two dimensional square lattice to monolayer graphene by using mathematica. For square lattice the code is given here "Poor rendering of fractals". The ...
27 views

### Placement of mesh lines [on hold]

I have plot a 3D surface with 2 mesh lines. function = Plot3D[x*y, {x, 0, 4}, {y, 0, 4}, MeshFunctions -> {#3 &}, Mesh -> {2}] How can I control ...
46 views

### Need help with ContourPlot3D

I need to print out the value of x, y, and z when h==0, g==0. Help please? ...
64 views

### How to overlay MatrixPlot with GridGraph?

I have a Matrixplot and a grid graph and I want to overlay them. But when I use show[g1,g2], it did come out what I wanted. I wonder how can I overlay them and make them like this? To make the points ...
34 views

### Getting an analytical form $f(x,y)$ from numerical solutions of a ContourPlot

I numerically solved a set of equations which yields a solution of the form $f(x,y)=c$. I was hoping to obtain an analytic expression for $f(x,y)=1$ (in my case $c=1$) but all I managed to do was to ...
42 views

### Cleanest way to plot multiple functions given a list of parameter values?

I have a function of two variables f[x_,t_]:= ... and I want to build a command that plots the list of functions {f[x,t_i]} given any list of parameter values {...
63 views

### Results visualization in Mathematica? [on hold]

I run an experiment $100$ times. The system has $30$ users, all with some demand. The service center has $4$ service stations/outlets. A user can be served by one or more (all four) service stations. ...
32 views

### Opacity issue in graphics3D

I'm trying to show a .obj model in Mathematica, with its bounding box and a couple of spheres representing the bounding box center and the model center. This is the imported model (tank was ...
86 views

### Simulating a poker win rate over time

Poker players start with a fixed bankroll (bankroll) and play with a win-rate winRate (say measured in dollars per hour) and ...
72 views

### How to separate a 3D Plot with a gap

I am interested in the plot of the 3 hump function $f(x)= 2x^2 - 1.05x^4 +\frac{x^6}{6}+xy+y^2$ , for $x,y\in[-2,2]$. So in order to show the 3 humps of the respective plot I gave the following ...
23 views

### Working with time series GDP data

I have two questions. First, how do I get a list of points from CountryData["UnitedStates", {{"GDP"}, {1960, 2018}}] as opposed to a graph. Second, if I have a ...
40 views

### How to fix holes in Plot3D

I have a function that produces something like that: 10^-8 (5.986357754778547 Sin[2 Pi x] Sin[7 Pi y] - 3.9800423510468493 Sin[4 Pi x] Sin[7 Pi y]) Then ...
29 views

### disable lines in RegionPlot when set is not bounded

Im trying to plot a horizontal strip in the (x,y)-plane with -1 < y < 1. I achieved this: ...
32 views

### ListSliceContourPlot3D plots Blanks with List1 and plots perfectly with List2. List1 == List2. Mathematica Version 10.4

I'm trying to do ContourPlots using the Function ListContourPlot3d. I have generated List1 and List2 using the following code. Here is the preliminary code to generate List1 and List2. ...
44 views

...
319 views

### How to fill a closed parametric curve?

I have a curve in parametric form: ...
33 views

### Cant plot and compare two plots?

I am trying to compare two functions, this function; ...
86 views

### Is it possible to use RegionFunction with Graphics3D?

I am using Graphics3D and I would like to use RegionFunction to exclude specific regions as in Plot3D but I could not. Here is ...
24 views

### A 3D contour also has a one dimentional component. Is there any plotting function that will alow me to “see” this component?

sm[x_, y_, z_] := (x^2 + y^2 + z^2 - 1) *((x^2 + y^2 - 2)^2 + z^2) ContourPlot3D[sm[x, y, z] == 0, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}] This shows be the sphere ...
34 views

### How to use custom x and y values when ploting ListDensityPlot [on hold]

I am a new user of Mathematica and hope someone can help me. I have data file which has 1500 columns and 500 rows and would like to plot it using ListDensityPlot function. Everything goes well when I ...
43 views

### What went wrong with my method of solving this differential equation? [closed]

I would like to solve and plot the solution for the linear oscillator. My code is as follow: ...
47 views

### Visualizing a system of differential equations [closed]

I have the following system of differential equations: x'[t] == x[t] - x[t] y[t] y'[t] == x[t] y[t] - y[t] I use this Wolfram Mathematica code: ...
58 views

### pHow can I reposition the axes of a 3D plot? [closed]

I'd like to reposition the axes in my plot of a surface. Please consider the following code: ...
105 views

### How do I plot a 3D surface on top of a 3D plane?

Consider, as an example, the Shannon entropy of probabilities defined over three possible outcomes: $$H(p_1,p_2,p_3)\equiv -p_1\log p_1-p_2\log p_2-p_3\log p_3.$$ I want to study the behaviour of $H$ ...
54 views

### Extract values of a ListAnimate plot that are moving at a fixed rate

I have this code which animates a layer of fluid moving on the outside of an ellipse with a moving black point on the cylinder surface itself. Is there a way to find the value of the blue outer line ...
83 views

### Bifurcation diagram

I have a differential equation y''[t] + 0.3*y'[t] - y[t] + (y[t])^3 == A*Cos[114.14*1.2*t] with y' == 0, y'' == 0 t varies from 0 to 1500, A varies ...
38 views

### Reduce spacing between legend entries using Show

I am creating two plots and using Show to overlay, however the legend has a very large inter-line spacing. This answer suggests using Image Size but my legend is not a separate graphics object. This ...
132 views

### How can I use Callout to label the segments of a piecewise function?

When I plot a Piecewise function, I like to put the function name above each part of the plot. I could not find a way to use ...
49 views

### Contour plot from list of 4D points

I have tried everything I think but I could not obtain a 3D contour plot from a list. Here is my code. Could you help me find the mistake I made? ...
251 views

### How to draw a 3D point moving along a helical path?

I have an animation for a helix being drawn in 3D but I really want to have a point on there that draws the helix. I've seen similar problems on here for 2D and I tried adapting the suggestions but I ...
82 views

### Piecewise function made up of five segments not showing in a plot [closed]

I want to plot 5 parts in a single graph using a piecewise function. But I am not able to plot the last one. Can anyone please help me with it? The code is as follows. ...
35 views

### best free way to plot vector fields in both Cartesian and Polar coordinates? [closed]

What's the best free way to plot vector fields in both Cartesian and Polar coordinates? online graphing webpage, application like octave, or python, any will do... i just want to know which has the ...
35 views

### Plotting a cumulative binomial distribution [closed]

The curve is correct, however I am not sure why it is not fully touching the x- and y-axes; it's just floating in the middle of the plot. Here is my Mathematica code: ...