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.

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?
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 ...
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. ...
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 ...
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
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. ...
6
votes
2answers
2k views

Create a 3D stack of 2D line plots [duplicate]

A simple concept but I've not been able to solve it. I'm trying to create a stack of 2D plots in 3D space using Mathematica 9. This is not a parametric plot, but I'm creating it from an array of ...
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): ...
28
votes
5answers
6k views

Plotting several functions

I'd like to plot a function of one real and one integer variable, but I don't want them all shown in the same 2-D plot - I'd like to see them as separate curves so I can see both "axes", more like how ...
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]....
0
votes
2answers
85 views

How to find mean of a plot generated by Manipulate?

I have a plot that I'm manipulating: Manipulate[Plot[PDF[GammaDistribution[alpha, beta], x], {x, 0, 5}], {alpha, 1, 5}, {beta, 1, 5}] I want to manipulate it ...
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
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
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. ...
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 ...
0
votes
1answer
58 views

Restricting domain in ParametricPlot

How would one restrict the domain on a ParametricPlot? For example, I have the following plot: ...
2
votes
2answers
180 views

Interpolation function

I am facing a problem in getting a smooth plot of following data. ...
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 ...
46
votes
3answers
7k views

Generating a broken or snipped axis in ListPlot

I have two data sets, data1 and data2. For example: ...
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. ...
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
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 ...
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
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}]
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
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
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 ...
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. ...
5
votes
1answer
343 views

Ugly plots when printing notebook to pdf

One image is worth one thousand words, so: Question: At what options should I be looking, so that what I see in my notebook is what I get in my printed pdf ? Here is the code I'm using: ...
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: ...
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 ...
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 ...
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 ...
7
votes
2answers
5k views

How to extract data from a contour plot to a text file?

I have the following expression from which I want to extract data for a contour plot. ...
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 ...
0
votes
1answer
36 views
-3
votes
1answer
153 views

Is it possible to extract data from a Mathematica plot and plot it with the Origin software? [duplicate]

I have combined three plots with "Show[p1,p2,p3]. Can I extract the data points from my plot and want to plot with origin?? ` ...
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 ...
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
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 ...
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 ...
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. ...
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 ...
8
votes
4answers
3k views

Labeling points in 3D plot

I am trying to label some points in 3D plotting. First, I'd like to label all points. The code below does not work, there seem to be a problem with a "Graphics" command, any ideas? Next, what would ...