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
0 votes
0 answers
18 views

How to speed up a plot?

I'm trying to plot the solution of a non-linear equation, but it's very, very slow. From what I could gather, it's not finding the solution that is time consuming, so I cannot quite understand the ...
user avatar
  • 403
0 votes
0 answers
30 views

How to Plot a graph with respect to time

I am new to wolfram Mathematica. Can someone please assist by showing me how I can plot “d” shown in The screenshot with respect to time, graphically?
user avatar
0 votes
2 answers
42 views

How to adjust the shape of some multiple edges of a graph separately?

The graph we drew below using TikZ is easy. ...
user avatar
  • 1,069
0 votes
1 answer
28 views

How to plot the derivative of a piecewise discontinuous function (by excluding discontinuity points)

With the following code I am trying to get a plot for the derivative of the ftot1 function, which is a piecewise discontinuous function defined as the sum of other two piecewise discontinuous ...
user avatar
  • 1
1 vote
1 answer
38 views

ListLinePlot showing the wrong domain and not starting at zero

I am trying to plot a graph that starts at zero from a list using ListLinePlot. The code: ...
user avatar
0 votes
0 answers
28 views

Formatting BoxWhiskerChart: rotate label, remove extra ticks, center legend

I am having a problem with a couple of things in this grouped box chart. Using following data I can plot a grouped box-whisker chart (example): ...
user avatar
  • 713
3 votes
2 answers
85 views

How can I visualize this complex geometry with mathematica?

Let $\varepsilon$ be a complex number of small magnitude and let $1+\varepsilon$ have magnitude $r$ and argument $\theta$. I want to generate the following image in Mathematica: and then I want to see ...
user avatar
2 votes
2 answers
68 views

Generating a large number of data points of a function subjected to multiple constraints

In continuation to my previous question, I have (a slightly modified) function f[x_,y_,z_,a_,b_,c_]:=x^2 a b + xy b c+ yz c a + z^3 abc , and I want to randomly ...
user avatar
  • 497
3 votes
1 answer
54 views

Why does this plot not work when changing variable range?

This works. Plot[ConditionalExpression[2 - 3 x, 1/3 <= x <= 1/2], {x, -3, 3}] But if you change the range it does not work. ...
user avatar
  • 2,392
4 votes
1 answer
83 views

How to plot a graph from two lists of data, range or array

I am trying to do a numerical integration in Mathematica for a basic spring problem. In short, I calculate in loop and save two list of numbers (values of times and positions) and after loop, I want ...
user avatar
1 vote
2 answers
96 views

Evaluate an integral over a range of initial values

I have an integral that I would like to evaluate over a continuous range of lower limits and plot the result. I can't figure out how to tell Mathematica to do this. $$Q_c(u) = \frac{2\pi}{c^2} \left(\...
user avatar
2 votes
2 answers
236 views

Making space between two tables

How can we make space between two tables arranged in the columns and each table contains four columns? Kindy let me know? I want this kind of table. Kindly let me know. I want it in latex?
user avatar
1 vote
1 answer
40 views

How to better display the data using ComplexListPlot?

I'm trying to plot the solution of the equation with ComplexListPlot but the plot of the data points are small and hard to see. Do you have any idea to display it better and easier to see the data? <...
user avatar
  • 2,392
0 votes
1 answer
95 views

Plot eigenvalues of a matrix with two variables [closed]

I am trying to plot eigenvalues E(kx,ky) of the matrix [mat] depends on two variables kx and ky and of course n its dimension , and the matrix elements a, b and c depend on cos(kx) ; cos (ky) and cos(...
user avatar
  • 19
0 votes
1 answer
68 views

Splitting a data set into multiple parts

The Problem I am trying to split a data set into multiple parts - thanks to help in the past, this has been done before into 2 parts, but I would like to extend this functionality into multiple parts (...
user avatar
  • 471
3 votes
1 answer
51 views

bV diagram of TE modes guided by waveguides with a linearly tapered index profile

I have an equation and I have tried solving it to find values of $b$ but it doesn't give me the same figure as in the book Foundations for guided-wave optics by Chin-Lin Chen. The equation that I have ...
user avatar
  • 31
2 votes
3 answers
77 views

Optimizing the FrameLabel size and PlotStyle

Here is the code I use to plot a graph ...
user avatar
  • 179
2 votes
1 answer
54 views

How to plot the graph between Q and J? Where, Q and J are variables

How to plot the graph between Q and J for the following equation? Here we can take $l$ = 1. $\frac{\pi Q^2 + \sqrt{\pi^2 Q^4 + \frac{16 J^2}{l^2} }}{8} + \frac{2 J^2}{l^2 \bigg(\sqrt{\pi^2 Q^4 + \...
user avatar
4 votes
0 answers
62 views

Drawing a tree diagram

I want to draw a tree diagram, like this I use Wolfram do some work ...
user avatar
2 votes
1 answer
99 views

How to get the graph of this function?

Found the animation of this graph (without code) and its function And I just need a graph, not an animation. How to do it? It's just "Plot" or what? I mean, I'm confused, because I don't ...
user avatar
  • 33
0 votes
1 answer
55 views

Graphing and calculating the volume using mathematica (or other)

I posted the following in MSE: (See Here) Consider two cylinders Cs (solid) and Ch (hollow): Cylinder Cs has a radius rs, and has the points (x1,y1,z1) and (x2,y2,z2) as the centers of its bases. ...
user avatar
4 votes
3 answers
161 views

How can I generate a large number of data points of a function and plot them?

Given a function f[x_,y_,z_,a_]:=x^2 + xy+ yz + z^3+a^2 (just for example), how can I randomly choose values of x,y,z,a (with ...
user avatar
  • 497
2 votes
1 answer
79 views

Solving 2D Coupled Nonlinear SO Coupled Equation

I am trying to solve coupled nonlinear SO coupled equations in 2D from the following two papers https://arxiv.org/pdf/2105.08849.pdf and https://arxiv.org/pdf/2109.00491.pdf. They have given an input ...
user avatar
0 votes
0 answers
50 views

How to obtain Potential from Action?

I am trying to reproduce the Potential from the equation (29) for B=1 from this paper (Page 14) I have obtained the Equations of motion from the Lagrangian by using the code given below: ...
user avatar
  • 313
0 votes
2 answers
44 views

Problem with Plot Callout LabelStyle Opacity

I am having problems with setting the opacity of callout labels when plotting. Strangely, it only seems to work when the text color is red. In the following example, the odd labels should be 0.2 ...
user avatar
  • 11
2 votes
1 answer
105 views

Limit of Summation K is Not a Number

I am trying to animate the general solution to a particle in a box (Schrodinger eqn), but anytime I change B to something greater than 0, it gives me the limit of summation error message. I apologize ...
user avatar
2 votes
1 answer
62 views

Lyapunov exponents at a fixed point

I am trying to find the Lyapunov exponents at a fixed point as given in the paper here(page 14). The code that I have used till now is given below: ...
user avatar
  • 313
1 vote
0 answers
49 views

Plot functions don't allow postfix function execution?

I'm confused about syntax of using // for postfix function execution. It fails in some situations where I would expect it to work. For example, it works with both <...
user avatar
  • 11
0 votes
0 answers
40 views

Two interactive ListLinePlots

I need to build an interactive interface to visualize multiples plots at the same time. Let's consider two lists: ...
user avatar
  • 21
0 votes
0 answers
18 views

Rotate Label not working in ListPlot [duplicate]

RotateLabel->False is not working for me in ListPlot. I'm using Mathematica 13.1 for Mac OS X Arm (64-bit). For example, this produces the error for me ...
user avatar
  • 345
0 votes
1 answer
61 views

List structure for plotting multiple y-values (with gaps on certain dates) using DateListPlot

I would like to set up a list like this data = {{Date1,y1,y2,y3,y4,y5,y6},{Date2,y1,y2,y3,y4,y5,y6},...} and then use DateListPlot to create various plots, e.g. y1 ...
user avatar
2 votes
1 answer
41 views

Ticks not working on two axes for ListLinePlot3D

Let's say I have a plot such that ...
user avatar
2 votes
1 answer
74 views

Axis Label 3D plot

I want to move the two horizontal axes closer to the axes keeping the same writing style (the label parallel to the axis), and also, the vertical axis should be parallel to the vertical label. Does ...
user avatar
1 vote
1 answer
62 views

Negative numbers raised to a fraction [closed]

I came across this function to solve for x (answers are -27, 0, 1) x^(5/3)+2*x^(4/3)-3*x; I went out to Desmos and Geogebra to graph it and the graph shows the ...
user avatar
2 votes
1 answer
35 views

Validation of the Laplace inversion and storage in a table or an array

I tried to validate this function from 0 to 50 but it takes very long time, is there a faster way to validate this function for t from 0 to 50 and add them in a list? ...
user avatar
2 votes
1 answer
84 views

Solving logarithmic 2D Nonlinear GPE Equation

I am trying to solve the logarithmic 2D Nonlinear GPE Equation from this paper https://arxiv.org/pdf/1801.10274.pdf. But failed to get the ground state solution and vortices. I tried to solve in ...
user avatar
5 votes
1 answer
148 views

Limit cycles and phase portraits of a two-dimensional polynomial quadratic systems using Mathematica

Cross-posted: https://community.wolfram.com/groups/-/m/t/2589679 I have elementary questions about the construction of phase portraits and limit cycles using Mathematica. It should be remarked that I ...
user avatar
1 vote
0 answers
98 views

Inverse Laplace in mathematica

I can't even get an inverse Laplace for this expression numerically in mathematica, is there a way to inverse this equation below? I have also tried to use fixt talbot package for a numerical ...
user avatar
3 votes
5 answers
669 views

Calculating length of curve based on data points?

I had around $1000$ data points $(x,y,z)$ and when I plot them they seem to lie on a closed curve. I carefully checked the data points and the points do not repeat rather they are somewhat close to ...
user avatar
  • 165
5 votes
1 answer
192 views

Monte Carlo Simulation of Charged Particles in Non-Uniform Electric Field

I have a code (provided below) which simulates the motion of an ensemble of charged particles which are subjected to a complex static electric field which passes through some aperture in a metallic ...
user avatar
  • 353
1 vote
1 answer
63 views

Set transparency of the legend background in a plot

It is known that the instruction LegendFunction can be used to set the background color of the legend in a Plot or ...
user avatar
-1 votes
0 answers
48 views

Plot automatically set to zero when Dynamic function is updated

I'm trying to write a script that will dynamically update when I change the tensor that I am working with and the interval tensor elements. Whenever I update the tensor elements that I am working with ...
user avatar
4 votes
1 answer
52 views

Using RegionFunction on a Polar Parametric Equation to Slice Surface in R3

I'm doing a visual graphing project in Mathematica and am building a rose. I've made most of it by slicing different regions of rotation using RegionFunction->[{x,y,z},x^2+y^2<4}]. Instead of ...
user avatar
2 votes
2 answers
71 views

ContourPlot output dependent on bounds

I have a function for an ellipse that depends on time: ...
user avatar
  • 175
0 votes
0 answers
60 views

streamplot for differntial equation

how I can use StreamPlot or VectorPlot to show x[t] and 1-x[t] and show convergence point in my plot with a different colour like a blue point? ...
user avatar
  • 55
0 votes
1 answer
36 views

Change color of overlapping convex hull and original function

I am trying to demonstrate how the convex hull for my function and using the following formula for that (where the first inequality is the original function, and the second one is its convexified ...
user avatar
  • 81
3 votes
1 answer
87 views

Why isn't the vector field being plotted over the entire torus?

I am trying to plot a vector field over a torus. Here is my code and the image it produces: ...
user avatar
4 votes
0 answers
47 views

Callout is out of frame

In the documentation of Callout, there is an example, ...
user avatar
  • 16.2k
2 votes
1 answer
38 views

Plotting from NDSolve [closed]

Code: ...
user avatar
  • 287
1 vote
1 answer
49 views

Using RegionPlot and NDSolve to plot areas of species coexistence across 2 parameter space

I have four ODEs corresponding to four species: ...
user avatar
  • 13

1
2 3 4 5
285