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
3
votes
4answers
169 views

3D plot with constraints

Given the 3D plot Plot3D[Sin[x y], {x, 0, 2 \[Pi]}, {y, 0, 2 \[Pi]}], how can one highlight the portion with $x+y=1$.
2
votes
1answer
56 views

How to apply ColorFunction only to data visible within PlotRange?

The following: ...
2
votes
1answer
55 views

How to use PlotRange with GeoGraphics [closed]

I am using PlotRange to clip a GeoGraphics plot so that I can center an area of interest. However, I do this via trial-and-error because I have no idea how PlotRange coordinates specified as ...
2
votes
2answers
45 views

How to add two labels to a point in ListPlot, and how to control the precise positions of those labels?

ListPlot has the option to label points using Labeled or Callout. At least those are the two ...
2
votes
1answer
92 views

Why does Mathematica import data with quotation?

I am importing data from ParallelTable as dat file and then export it again for visualization. However, the exported data ...
0
votes
1answer
55 views

How to plot a system of coupled PDEs using NDSolve [closed]

I am trying to solve the the following system of couples PDEs using NDSolve. However I am struggling to plot the solutions. I am trying to plot |u1[t,x]|^2 (i.e. the square of the absolute value) but ...
2
votes
1answer
73 views

Pie chart plot formatting

I have been looking through numerous stack posts to answer 1-4 below. I am trying to generate a pie chart with several very small slices that have long labels. when I do the callouts how can I ...
5
votes
2answers
72 views

Extrude a parametric plot along a straight line obtainning a closed surface

I made this parametric plot ...
3
votes
1answer
84 views

Twisted Bilayer Graphene Mathematica Plots

I am trying to plot band structure of twisted bilayer graphene. This is a ten bands model studied in this work reference. Everything is working fine but the bands are taking jump among each other for ...
5
votes
3answers
248 views

How to discretize a parametric polar surface ensuring the correct periodicity of the mesh

I am trying to discretize a polar surface using a combination of ParametricPlot3D and DiscretizeGraphics. Unfortunately, the ...
6
votes
1answer
122 views

How to create a plot of vectors emanating from the x axis?

I am trying to make a plot that looks something like the image seen below: So far I have the following code: ...
1
vote
3answers
50 views

Giving a range to Plot to plot multiple lines at the same time

I'd like to plot something like this: Except that instead of manually specifying all the functions to be plotted, I specify a range. So for example I could feed ...
1
vote
1answer
75 views

Plotting two functions into one plot with two y-axes. Is there a built option for this in newer versions of Mathematica?

I am looking into possibilities to plot two functions into one Plot, but with separate y-axes. I came across several variants of how to do this when searching for ...
0
votes
1answer
25 views

Changing AxesOrigin on a ListPointPlot3D

How do you change the AxesOrigin to {0,0,0} for ListLinePlot3D? The code I initially have looks like this ...
0
votes
1answer
28 views

Why RegionPlot does not show the negative part of a function?

I have this function $$ f(x)=\frac{1-25 x^2}{\left| 25 x^2-1\right| }\;\frac{2500 x}{\sqrt{\left(25 x^2-1\right)^2 \sinh (\pi x)+9}}+\cosh ^{-1}\left(\frac{1000 x^2+\left(25 x^2-1\right)^2}{\left(25 ...
1
vote
2answers
49 views

Having two or multiple plot legend lines next to a single string

This question showed up as a gentleman asked on reddit. Had a quick jab at it and thought might be useful. The request was to have legends for a plot where each legend mark represents two traces on ...
3
votes
2answers
53 views

Conditional contour plot

I want to plot implicit plots in certain regions. For example plot the section of the hyperbola that is in between the wedge. But I could not find out how to do this. Multiplying the first expression ...
0
votes
0answers
34 views

Getting the contours near a singularity when using ListContourPlot

I need your advice. I'm using ListContourPlot to plot the lines of force, but It always skip the line, which are the nearest of the upper electrode. I tried to ...
3
votes
0answers
28 views

Multiple legends for barCharts

I came across this and found it quite cool. Here is the minimal example: ...
4
votes
3answers
203 views

Plot involving an implicit function

I'm trying to make a plot that depends on an implicit function. This example illustrates the problem: plot $c=2l +n$ in the $c \times l$ axes, where $n$ is implicitly determined by $n^5+ 2n = c^2$. ...
3
votes
1answer
142 views
1
vote
0answers
18 views

Using Select for lattice points

I know how to use Select to generate a list of numbers which satisfy a certain condition. However, I am not sure how to do this for points (specifically 2-tuples) ...
2
votes
3answers
69 views

How can I make a projection of ParametricPlot3D onto 2D surface without shading?

I have a Parametric Plot that has very high and low values. I used this answer Project RegionPlot3D to 2D using hue/color function to show third dimension to project the surface onto the 2D plane. ...
1
vote
0answers
47 views

Heatmap plot of probability distribution evolution at discrete time intervals?

In the answer to this question it is suggested to use MatrixPlot to obtain a heatmap plot of a time evolving probability distribution. However, what if my ...
1
vote
0answers
44 views

SpectrogramArray timescale

I have a 600 second @ 8000 Hz WAV file which need to be analyzed in detail in terms of events (red parts in plot) defined in time and frequency that need to be rather exact, in particular the ...
3
votes
1answer
50 views

How to draw two vertical lines into a Plot or ParametricPlot and fill / shade the region between them?

I will give an example of a regular Plot, but I also need this to work for a ParametricPlot. Say I have ...
6
votes
0answers
157 views

Rendering realistically looking rope

I used this code of user Henrik Schumacher to try render a realistic looking rope. The result using ParametricPlot3D is here: In fact not very realistic. The ...
0
votes
0answers
28 views

Outline Color in RegionPlot & Labeling

I would like to: change the outline color to be black, for both regions, rather than the current blue and orange. Is this possible? I would like to label the white area above the b2 = 3.1 line as &...
2
votes
1answer
32 views

axis values for custom points in listplot

Let's say I have a listplot like so: ListPlot[Prime[Range[25]]] I want my plot to mark the x,y values for the values associated with say, the 5th, and 10th points ...
0
votes
1answer
70 views

Trying to plot f(x)= xsin(ax) and its derivatives in a single plot but graph shows nothing [duplicate]

The function is f[x] := xsin(ax),the first derivative is f'[x]=axcos(ax) + sin(ax)and third derivative is ...
1
vote
2answers
39 views

ListDensityPlot3D with thick points or BarLegend for Graphics3D

I have a small number of points in 3D space. Each point has an associated weight (real number). For each point, I want to plot a [visible point] whose color is a function of the weight value. It seems ...
0
votes
0answers
28 views

How to identify points (compactification) in 3d plot

I want to generate the plot of a sphere such that $\phi$ which usual varies from $[0,2\pi)$ with $2\pi$ being identified with $0$, Now I want to identify $0$ to $2\pi\beta$ with $\beta$ varies from $[...
0
votes
1answer
46 views

How can I plot Trajectory of 3d parametric plot?

x1 and y1 are constants. I have plotted ParametricPlot3D. ...
2
votes
1answer
63 views

PlotStyle for four surfaces

How can I choose the PlotStyle such that the four surfaces are visible (at least to some extent) in the following plot ...
1
vote
1answer
27 views

3D plots with standard x,y,z-axes [closed]

I'm new to Mathematica. I'm trying to figure out how to do 3D plots that show the standard x, y, z-axes instead of a rectangle box on the outside. I looked through Wolfram's online documentation, but ...
1
vote
1answer
39 views

How can I specify the output mesh resolution for ListPlot3D?

I am using a grayscale image to generate a 3D topology, with the help of ListPlot3D. However, the output mesh resolution is far too high for my purposes. I need to ...
2
votes
1answer
60 views

How can I make the size of the Ticks consistent with the size of the figure?

I wrote this code to help me manipulate the size of the figure along x and y (controlled byXZ...
3
votes
1answer
38 views

Plotting just one branch of hyperbolas

I have a family of hyperbolas that I want to plot. Right now, I have this code ...
2
votes
1answer
58 views

Create a CountorPlot or DensityPlot using ColorData as input

I have created a function which takes two arguments and outputs an RGBColor, and I was hoping that I could use this to create the equivalent of a ...
0
votes
0answers
139 views

How can I reproduce this correlation map based on data?

I am trying to produce a correlation map for some NMR experiment with this data. I tried to plot the data with Mathematica but the result was not close to my expectation. Hence, I tried plotting the ...
3
votes
1answer
61 views

How can I plot this one-dimensional Self Organizing (Kohonen) Map?

Mathematica used to have a package called NeuralNetworks that is not currently working. With that package, you could create a Kohonen or Self Organizing Map (https://en.wikipedia.org/wiki/Self-...
1
vote
1answer
66 views

Why am I getting blank plots but no error messages?

I am trying to create two density plots of values but one plot has blank spots and the other is entirely blank. I do not get any errors when I run the code so I am not sure why the plots are turning ...
2
votes
0answers
27 views

Reformatting $y$-axis labels from decimal to exponential form [closed]

I have this graphic How can I reformat 0.001 as 10^-3? just like the 10^-4?
3
votes
0answers
97 views

How *does* Mathematica generate ticks and tick values?

This question has sort of been asked before in various guises (e.g. here and here), but the answers given there do not answer the question I'm posing. Before I pose my question, a definition. Let use ...
0
votes
1answer
32 views

“Constraints should be equalities, inequalities, or domain \ specifications involving the variables”, leading to unexpected results

While trying to maximize the function fun[x_, a_, b_], over parameters $a$ and $b$, and plotting the resulting maxima with respect to $x$, I encountered the error ...
2
votes
2answers
187 views

Plotting a particles's trajectory [closed]

I need a little help in plotting a trajectory. A particle moves along a trajectory such that its radius vector is given by: $\qquad r[t] = A(e^{\alpha t} + \widehat{e_1} + e^{-\alpha t} + \widehat{e_2}...
0
votes
0answers
16 views

Plotting components of a multivariate ItoProcess object vs. each other

About a week ago I asked for some help in generating bivariate Ito processes where the components can be correlated (See thread Simulating a bivariate Ito process).b.gates.you.know.what kindly ...
3
votes
2answers
85 views

How can I use ImageCrop on a results from Grid?

I have this figure produced using Plot and Grid ...
0
votes
1answer
44 views

Use `Dynamic[]` to plot dynamically solve equation and dynamically display calculated value

Here is my code and it works well: ...
0
votes
0answers
23 views

Custom Contourlabel to show linear values on log plot

How can we use ContourLabels to show linear values of a function on the contour plot while the plot itself is in log scale?