Skip to main content

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
5 answers
306 views

Coloring a function based on its monotonicity

I have a function f and I would like its graph to be colored based on its monotonicity. Specifically: Warm colors for the regions where the function is increasing, ...
Kώστας Κούδας's user avatar
-4 votes
0 answers
54 views

I have problem with my code [closed]

I don't know why it's not running this code : ...
Felipe Dura's user avatar
1 vote
3 answers
193 views

How frequently is random number generated when plotting function containing RandomReal?

Plot[Sin[x + 0.1*RandomReal[{0, 2 Pi}]], {x, 0, 2 Pi}] ...
metroidman's user avatar
  • 1,003
0 votes
1 answer
30 views

Showing mouse position on ContourPlot curve dynamically

This is a function that shows mouse position on ContourPlot curve dynamically, but it seems to have wasted a lot of computing resources, making the program very sluggish. What can I do to make it more ...
young's user avatar
  • 11
1 vote
1 answer
48 views

Adding and formatting legends in Show with different kind of graphics

I would like to add a legend to a combination of plots obtained by Show. For example: ...
umby's user avatar
  • 595
0 votes
1 answer
90 views

Plotting HeavisideTheta

Imagine I have this function f(x)=x^2; f(x)*(HeavisideTheta[x-1]/4+3HeavisideTheta[x-3]/4) Does the discontinuity always exist? I mean regardless of f(x), just ...
li xu's user avatar
  • 345
1 vote
0 answers
49 views

Poincare section for a cigar shaped geometry

Here is the mathematica code that I am using to find the Poincare Section of a Cigar Shaped AdS-soliton background: ...
codebpr's user avatar
  • 2,553
0 votes
0 answers
48 views

How to color contour lines with functions [duplicate]

For example: a Implicit functions X^2 + y^2 == 1, i want to plot it and color it with function x + y to display the size of x + y in different positions on this Implicit functions. What should i do? ...
young's user avatar
  • 11
0 votes
0 answers
24 views

How to hide regionfunction [duplicate]

I just want to show the part of the cylinder and hide the transparent regionfunction.What should I do?
young's user avatar
  • 11
2 votes
1 answer
110 views

Plotting solution of a three body problem with given initial conditions

Disclaimer:I am not trying to find new solutions for the 3 body problem (3bp), I already have the initial conditions and I already know what configuration I should get. I am trying to create an ...
Edison Santos's user avatar
0 votes
0 answers
56 views

Why Won't My Functions Plot? [closed]

I've been trying to graph a function with a domain between [-4Pi,4Pi], but the function can't be graphed as soon as I add Pi to the domain: So what's the issue here? Is there a workaround for this?
William's user avatar
2 votes
1 answer
128 views

Weird error in RegionPlot3D? [closed]

I am trying to plot a sphere with radius varying with the angles. Here is the code ...
Confuse-ray30's user avatar
0 votes
0 answers
39 views

FindSequenceFunction[] fails to infer a sequence pattern

I have to compute the following function: $$\sum _{i=0}^{\infty } \left(1-\sum _{j=0}^{\min (i,2 n)} \frac{n^{-i} \Gamma (j+1) \Gamma (n+1) 2^{-i-j+2 n} \mathcal{S}_i^{(j)}}{\Gamma (j-n+1) \Gamma (-j+...
Cardstdani's user avatar
0 votes
0 answers
38 views

Labeled[..,..,Above] giving MapThread::mptd errors

As far as I see there is no single thing on the internet with errorcode MapThread::mptd being associated with the Labeled ...
Sample Account's user avatar
0 votes
0 answers
48 views

Transparent Vibrant Color in 3D Region Plot

How to make a 3D region plot (for example a unit cube) transparent with vibrant color. I can do this by PlotStyle-> Directive[RGBColor[1., 1., 0.02], Opacity[0.1], Specularity[Yellow, 100]]. But ...
Sauvik Bhattacharjee's user avatar
3 votes
1 answer
73 views

Using `Filling` in a plot changes the font of the tick marks?

If I evaluate the following code (in Mma 14.0 on an Apple silicon 2024 macbook running macos 14.6.1 (23G93)) ...
Mariano Suárez-Álvarez's user avatar
0 votes
1 answer
61 views

Colour scheme for this graph

How to produce a graph with the colour scheme used in the graph shared below? I have the following code for measuring the eigenstate and eigenvalue ...
user444's user avatar
  • 2,688
2 votes
1 answer
103 views

Replicating Complex Plot (branch cuts, poles, shading)

I am trying to recreate the following 2 plots: where the function being plotted is $|e^{2ipR}S_0^{\text{well}}(p)|$ where $|...|$ is the absolute value, $R=1$, and $S_0^{\text{well}}(p)$ is given as \...
MathZilla's user avatar
  • 145
0 votes
2 answers
61 views

How to make the specific filling in the plot

Consider the following curves: ...
John Taylor's user avatar
  • 5,923
2 votes
1 answer
67 views

SwatchLegend using a table

I am facing a problem while adding another column to the SwatchLegend using a table. The below code is provided in Mathematica Documentations Original Code ...
user444's user avatar
  • 2,688
2 votes
1 answer
169 views

Find Way to Make Solid 3D from ParametricPlot3D and Also Finding the Moment of Inertia and Center of Mass

I want to Find way to make Solid 3D from ParametricPlot3D and also finding the Moment of Inertia and Center of Mass. this is my code, hope it'll be helpfull to answer my problem. thank you. ...
kai29lol's user avatar
0 votes
0 answers
61 views

How to get the root from a hypergeometric function and plot it in the complex plane

I'm trying to reproduce the plot(Figure 3) of this paper. Here, the strip length's expression is given by the Equation.13 $t_\pm(z)= A_\pm \pm \iota \frac{z_t}{d}(\frac{z}{z_t})^d \times {}_2F_1\left(\...
Entangled Quark's user avatar
1 vote
1 answer
23 views

ImageCrop of Legended object does not work. Title is also a lot more distant. How do I convert Legended to Image?

I have a Plot3D object that I want to crop via ImageCrop and give a Title. I have Legended the plot, i.e. ...
Confuse-ray30's user avatar
3 votes
1 answer
104 views

Empty Poincare Section When The Phase Space Is Full

I have the following Mathematica code for drawing Phase Space: ...
codebpr's user avatar
  • 2,553
3 votes
2 answers
54 views

How do I move the label of DateInterval to the middle in TimelinePlot?

This is my current code for TimelinePlot: ...
yode's user avatar
  • 27k
0 votes
1 answer
42 views

Need help with MultiaxesArrangement

I'm trying to use different axes for the third of three lines because the difference in scale makes it impossible to see the effects on the third line. However, the resulting graph bunches all of the ...
Carolyn Levine's user avatar
2 votes
1 answer
115 views

Poincare section keeps running without giving results

I am trying to find the Poincare section as given in Figure 7 of this paper. This is the code that I am using for it: ...
codebpr's user avatar
  • 2,553
4 votes
1 answer
102 views

Plotting orbitals on a lattice

I wish to construct a plot where I show various d orbitals on a face-centred cubic lattice. For example, lets say I want to plot two dxy orbitals on two sites of the lattice. I can plot the lattice as ...
WaterDrop's user avatar
  • 153
0 votes
1 answer
53 views

Plot Mesh with the given coordinates ListDensityPlot

Assume I have a set of points {x_i,y_i,f_i}, i=1;;N, which are not equidistant. Now I am plotting them via ListDensityPlot[{{x_1,y_1,f_1},{x_2,y_2,f_2},......}]. How I can plot a Mesh, which with ...
seva011's user avatar
  • 346
0 votes
0 answers
17 views

Save adequate version of ContourPlot without artifacts and of small size: rasterization does not work [duplicate]

Consider this code used in Mathematica 13.2: ...
John Taylor's user avatar
  • 5,923
0 votes
0 answers
35 views

How to align the colors of contours and legend bar in ContourPlot

Consider the following plot: ...
John Taylor's user avatar
  • 5,923
1 vote
0 answers
39 views

How can one hide the seamline caused by the wrapping of a function to a sphere? [closed]

I have data2 of the type data2 = {{theta_1, phi_1, value_1},{theta_2, phi_2, value_2},{theta_3, phi_3, value_3},.....,{theta_n, phi_n, value_n}}, where: theta is a polar angle (in degrees) and ...
Quantum Kid's user avatar
3 votes
1 answer
48 views

Line-separated MatrixPlot based on magnitude

Given the matrix ...
Jocelyn Minini's user avatar
0 votes
1 answer
49 views

Unwanted Triangular Mesh Artifacts in ContourPlot When Exporting as PDF [duplicate]

I am using the following Mathematica snippet to generate a contour plot: ...
Foad's user avatar
  • 615
1 vote
0 answers
46 views

How to plot potential function with Heaviside step function

How to plot $\frac{V(\varphi)}{V_{0}}$ with respect to $\frac{\varphi}{\varphi_{0}}$ for the following $V(\phi)$, where $\lambda_{0}=-1.0\times10^{-14},e=2.718,N_{UV}=15,g_{0}=0.0217,k=(16\pi^{2})^{-1}...
NovoGrav's user avatar
0 votes
1 answer
70 views

Gap between labels of the axes and the arrowheads

I have posted a question Doing a graph using mathematica in this site few hours ago and I got a nice answer too. I tried some modifications of the codes and got satisfied with the output. Here is the ...
Juniven Acapulco's user avatar
-1 votes
0 answers
42 views

Invert a Pair of Density Plots

I am currently solving the following system of equations: $$ \begin{bmatrix} A(x,y) & B(x,y)\\ C(x,y) & D(x,y) \end{bmatrix} \begin{bmatrix} \alpha\\ \beta \end{bmatrix} = \begin{...
NavStoke's user avatar
0 votes
1 answer
67 views

Plotting a graph for inverse sine

I want to make a graph of the arcsine function using Mathematica. The following figure was created using GeoGebra: What I've got so far is this ...
Juniven Acapulco's user avatar
1 vote
0 answers
33 views

No ticks on the x-axis [closed]

Here is the graph that I've produced using Wolfram mathematica: I can't see the ticks on the x-axis. I don't know the command for it. I already attempted many times but got failed. Here is the code ...
Juniven Acapulco's user avatar
5 votes
3 answers
399 views

How to make a ParametricPlot3D into solid shape

so, how define the moment of inertia and center of mass of this frustum? I find this quite dificult, instead i can make this frustum to be a solid 3d and find the volume of the frustum code. so, the ...
kai29lol's user avatar
1 vote
1 answer
61 views

DateTicksFormat -> Automatic different in 14.1 than in 14.0

In v Mathematica 14.0, the default automatic setting for DateTicksFormat in DateListPlot displayed the time on the horizontal ...
hippo3773's user avatar
  • 1,258
1 vote
2 answers
101 views

About a point in a piecewise function

I would like to create a graph as shown below using Wolfram Mathematica: This is what I've tried: ...
Juniven Acapulco's user avatar
1 vote
1 answer
70 views

Solution Of 2D Logarithmic PDE In Periodic Potential In Imaginary-Time Propagation Method

I am trying to solve Eq.no.(8) from https://arxiv.org/pdf/2009.06804 and generate Fig. (3)-(4). The problem I am facing is that in imaginary time propagation method the solution is growing with time ...
Argha Debnath's user avatar
0 votes
1 answer
37 views

VectorColorFunction to use another function for the color

I would like to make a vector plot where the vector is a multivariable function of $x$ and $y$ and the color of the vector is another function (like the $z$ component of the vector effectively). Here ...
Andrew Hardy's user avatar
1 vote
1 answer
114 views

Histogram of angular data without edge aliasing?

I'm sampling angles which are known to have a certain density in $(-\pi,\pi)$ range (background). Using Histogram to visualize it creates an aliasing effect around ...
Yaroslav Bulatov's user avatar
-3 votes
1 answer
102 views

Why can't an image be drawn?

Why doesn't this code draw the graph of the equation? ...
csn899's user avatar
  • 4,844
1 vote
1 answer
57 views

Parametric plot issue

I have a simple program, ...
Debojyoti Mondal's user avatar
6 votes
1 answer
204 views

Continuously vary tube radius of parametricPlot3D depending on distance from origin

I'm doing a project trying to 3D print the stereographic projections of 4D shapes, and I need it so that the lines are thinner towards the origin for structural reasons. I've written functions to do ...
Annabelle Snell's user avatar
1 vote
2 answers
88 views

Removing white regions from density plot

I am trying to use a density plot to show the value of a function, but I get white regions that I don't know how to get rid of. I have used several questions and answers in this website and have ...
Marco's user avatar
  • 193
3 votes
1 answer
169 views

Duffing Equation:Transition to Chaos

I create the following code but the results were not that I expected for. The paper I study is Duffing Equation My code gives me the following. But I want a smoother and clearer plot. What should I ...
Athanasios Paraskevopoulos's user avatar

1
2 3 4 5
323