Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plotting]

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

0
votes
0answers
10 views

X-axis not properly displaying when graphing, depending on the values of the function

I'm trying to plot a two-dimensional function with visible and labeled axes and an origin at (0,0). However, my x-axis either does not display or is not at y=0, depending on the values of the ...
0
votes
1answer
31 views

Graphing the compound interest formula correctly

To preface, I'm very, very new to Mathematica. I've written a few functions to calculate compound dividends from stocks. ...
2
votes
1answer
30 views

Draw a graph and write its function based on the values and derivatives at different points?

This is a very general question since googling didn't bring anything useful up for me. Suppose that I have the value of a function at some points plus the derivatives at those points. Now I am looking ...
5
votes
4answers
127 views

Numerical contour plot of compiled function

I have come across a problem in Mathematica when I have tried to plot the contours of a compiled function. ...
1
vote
2answers
72 views

Animated Lissajous Curves Parametric Plot

I love mathematical GIFs' power to illustrate and communicate math concepts widely. I haven't had much luck with the build-in ListAnimate on MMA Online but ...
1
vote
0answers
39 views

How can I increase the range in $y$ axis using Plot?

I'm not getting the full range in the $y$ axis using Plot. How do I set this range?
4
votes
1answer
52 views

Draw functions on Plot3D

I have a 2D function $f(x,z)$ which I render with Plot3D. In the plot, on top of the surface, I want to plot 1D functions at $f(0, z)$, $f(100, z)$ and $f(200, z)$. ...
0
votes
0answers
23 views

How to make ListPlot work for Table output on this for {{matrixElement}}?

I am using Table to get values for some expressions (see code below): ...
1
vote
0answers
34 views

I want to draw 2D plots into a 3D graph in mathematica, how can I do it? [duplicate]

I want to stack 2D plots into a 3D graph, for example I have a function F=(3x+y(2+5y))/23 of two variables x and y, and want to plot like this need help in mathematica program plz
0
votes
0answers
49 views

How to make a phase diagram (vector plot) using results from NDSolve?

I solved the next differential equations using NDSolve, so I got two solutions ϕ[t] and H[t]....
1
vote
1answer
16 views

top and right FrameLabel not working for ListPlot

Since upgrading to version 11.3 (Linux CentOS7 64b), FrameLabel can only provide the normal labels, to the left and below the plot, for ListPlot, however it works as it should for any other plots. ...
0
votes
1answer
47 views

Plotting massive amount of data

I have to plot a huge amount of data. I have only one file, I've already imported it. The file contains the following: 48 separate smaller fractions. Every fraction begins with six numbers (which ...
1
vote
1answer
32 views

How to plot a line density plot using data file

I am using the following code to generate a density plot using a data file (which has three columns). The first column is X axis and second column is Y axis and the third column is the color. It gives ...
4
votes
2answers
137 views

How can I replace division sign with slash in ticks of BarLegend

I am plotting a Bar legend for the density plot using BarLegend. I got the desired bar legend but it has ticks in the form $\frac{\pi}{6},~\frac{\pi}{3},..$, I want ...
0
votes
1answer
34 views

How to find the fit for a numerical solution

I solved numerically a differential equation and I found a solution (solution that can be plot). I also tried an Ansatz to find an analytical solution and I got an expression. Using the numerical ...
0
votes
0answers
34 views

Plot Eigenvalue Data

`kmin = 0; (* min wave number *) kmax = 5; (* max wave number *) nopoints = 51; step = (kmax - kmin)/(nopoints - 1); ktable = Table[k, {k, kmin, kmax, step}];` I ...
4
votes
1answer
85 views

How can I crop an x axis range and combine left and right part of a plot?

I remeber that I saw once a similar question, but I can not find it anymore. I can make a combined plot of the two data set data1 and ...
0
votes
0answers
25 views

How to animate two value expression in mathematica [duplicate]

I have an expression which is a function of two variables. How to animate this? m = 200; y = Sin[\[Pi]*x]*Exp[I*m*t] Manipulate[Plot[y, {x, 0, 1}], {t, 0, 10}]
0
votes
2answers
51 views

Get the 2d plot of the intersection of 3d surfaces

I am trying to find points $(x,y)$ which satisfy the following constraint: $$1000F_r(x,y)=\frac{1000x\sqrt{1/y^2-1/A^2}}{1+x\sqrt{1/y^2-1/A^2}}=1/2$$ Where $A\simeq0.0008$. My idea was to plot $z=...
1
vote
2answers
38 views

Removing axes numbering

I have the following example where I want to see the numbering only of the left y axis and the bottom x axis. The FrameTicksshould be the same for the both x axes ...
0
votes
0answers
21 views

Multifractality - Wolfram Code [duplicate]

In order to descrive the multifractal behaviour of a set, Baumann provides a code based on the functions Dq and Tau, given below. ...
0
votes
2answers
32 views

ParametricPlot table of complex functions in several graphs

Assume that I have a table of complex functions like Clear[p] Clear[M] M = 10; G = Table[Sin[i p] + p I, {i, M}] I want to ParametricPlot them in graphs, each ...
2
votes
3answers
87 views

Two data sets superposed using two different axes styles

I saw the answer here, but I don't see the right axes labels in Mathematica 11.3. I have two data sets: ...
3
votes
2answers
56 views

Adding custom Mesh on top of existing Plot3D Mesh

I want to add custom Mesh lines onto a Plot3D, with different MeshStyle than Mesh lines which already exist. As a MWE, starting with a meshed plot ...
9
votes
2answers
69 views

How to show Plots or Graphics in mini MMA HTTP Server?

I learned some codes to make a mini HTTP server in MMA way here. ...
0
votes
1answer
36 views

RegionPlot evaluating NIntegrate before assigning variable values and resulting in non-numerical integrands [duplicate]

I am trying to find the regions where the integral of a function a function is larger than a certain quantity using RegionPlot. For simplicity's sake, let's say the intergal I am looking to plot is is ...
0
votes
1answer
36 views

Mathematica cut my y-legend axis when I export

Consider the following code : ...
4
votes
1answer
42 views

Plotting a vector field embedded in a donut

I have the following code ...
2
votes
1answer
46 views

How can I generate a best fit quadratic function?

This is my first time using mathematica so I'm pretty confused. This question is based on the Sierpinski Triangle. The figure below shows the percentage of total even entries and total odd entries ...
5
votes
2answers
126 views

Plot geologic profile of layers

I am trying to plot a set of layers with different values of densities (density profile). Geometry ({x,z} values) of 15 interfaces of layers look like this: while ...
0
votes
1answer
96 views

Help with debugging my code [on hold]

In order to descrive the multifractal behaviour of a set, Baumann provides a code based on the functions Dq and Tau, given below. ...
0
votes
0answers
38 views

Difficulty in plotting the polynomial function

I have a polynomial function which is in x, I am trying to plot this out but could not able to plot. how to do this ...
0
votes
0answers
25 views

Plotting differential equations separately inside manipulate function

I am solving multiple differential equations using ParametricNDSolveValue function. Later, I am plotting these differential equations using plot function inside manipulate function. So, basically I am ...
0
votes
3answers
47 views

Drawing a diagram showing how a parabola is generated

I need help. How do I create a plot like the one shown below in Wolfram Mathematica? It's the upper-right picture, for value of p = 1/2, that I want. Is it ...
0
votes
0answers
29 views

Use Manipulate, RegionPlot and Reduce in Mathematica 11

I used the following code in Mathematica 8 and it worked. Running the same code in Mathematica does not. I am very much open to suggestions to reach the same output plot in a clearer way. The code ...
4
votes
1answer
31 views

Overlaying two SmoothDensityHistograms

I want to overlay two objects of SmoothDensityHistogram using Show, in order to highlight a region of the shared plot space. However, the top object completely obscures the bottom one. I tried to ...
1
vote
1answer
29 views

FrameTicks not working in ListPlot

I have seen this post and my own post from last year. This question seems different. Problem: I can't get the numerical labels of one of the ListPlot axes to display in non-scientific notation. ...
2
votes
1answer
97 views

Plotting Vectors in Mathematica

I'm trying to plot 2D vectors in Mathematica. Built in functions don't really work for me because I want to plot vectors of matrices from the origin to the their coordinates with an arrow on their ...
1
vote
1answer
54 views

How can create a plot showing an NFL team's yards and points per game over the past 10 seasons?

I'm looking to create several plots comparing statistics for NFL teams. In particular, I want to compare yards per game (YPG) and points per game (PPG) since 2008. Can this be automatically pulled ...
0
votes
1answer
40 views

Plotting Simple Expression [closed]

I want to plot y = 1 - (1 + x^4 - 2 x^4)/(1 + x^4 - 2 x^2 cos (2*omega*beta*L)) x = .2; beta = .5; L = 2; Plot[y[omega], {omega, 0, 3 Pi}] where I vary omega. ...
1
vote
2answers
71 views

How can I plot this integral?

I am in the following situation: I have a complicated ODE for the function f[x] that has no anlytical solution and an integral that depends on ...
2
votes
1answer
27 views

ColorFunction in SphericalPlot3D fails with ImageValue

I would like to texture and deform a sphere with with images using various mapping functions between x,y and phi,theta. I figure I should start with $f(phi,theta)=(x,y)$ as a test case. However, I ...
3
votes
1answer
39 views

Ranking polynomials based on global maxima

Suppose I have the following polynomials in an association i.e. <|...|>, they are: ...
2
votes
1answer
27 views

Change the dimension of the result of PointLegend? [duplicate]

Here is the output of PointLegend: ...
1
vote
1answer
36 views

Adding color and opacity to 2D scalar function with respect to its abolute value?

I'm trying to represent the absolute density of a 2-variable scalar function by color and tranparency/opacity. By absolute denstiy, I mean the absolute function value. I tried to do the coloring as ...
1
vote
2answers
31 views

Coloring ParametricPlot of several complex functions

I want to PlotLegends -> "Expressions" for G with different colors where G = {{Sqrt[1 - x] + I Sqrt[x]}, {Sqrt[1 - x] - I Sqrt[x]}} I tried the following ...
5
votes
3answers
497 views

can't blend gradient colors with a stream

The following function generates a plot of the 3d function indicated in the example. ...
2
votes
0answers
51 views
1
vote
1answer
62 views

How to add a plot legend to a Rotate Show expression

I have a problem, the legend is shown in rotate form and I want it in normal form ...
0
votes
1answer
40 views

Fill under ListLinePlot below 0.5, under the condition the line is not larger than that value

The data at the bottom generates the ListLinePlot also shown below. Now I would like to Fill under the line, but only in the regions where the line is less than or equal to 0.5 (there may be multiple, ...