The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
1answer
82 views

How to solve set of linear differential equation in Mathematica?

I have a set of linear differential equations and are written in this format [X']=[Y]-[R] where [P][Y]=[Q] My actual P matrix size is of 20x20 and Q is of 20x1 and Y is of 20x1. I have written this ...
2
votes
1answer
132 views

Why would Evaluate[] in Plot give me warning about precision?

I have a code:- Plot[Evaluate@PDF[NormalDistribution[1.6, 0.2], x], {x, -6, 6}] And then I got the warning: ...
1
vote
2answers
69 views

Provide a list of colours for the points of ListPlot

I want to colour the points in a ListPlot with a list of colours, i.e. something like ...
3
votes
1answer
100 views

Methods for ListPlot3D [duplicate]

In the documentation for ListPlot3D we see that there is the option Method, but which methods are avalaible? I cannot find a documentation page for it. If that is ...
0
votes
1answer
70 views

Solve implicit equations, input and plot the solution in a different equation

I have two implicitly defined variables, $\sigma_D$ and $\sigma_M$ one of which is a function of the parameter $v$. In particular, $\sigma_D = F(\sigma_D,v)$ where $F(\sigma_D,v)=0$ if $ c_D < -0....
1
vote
4answers
64 views

Area-colored phase diagram for various ranges of f(a,b), given the ranges of a and b

Is there a way to plot a simple diagram in Mathematica with colored areas, like a phase diagram, for the different ranges of values of a function such $f(a,b)=(1-a)/(b+2)$, for various combinations of ...
0
votes
0answers
28 views

Use Manipulate where there are fixed parameters and one varies in an interval

I manually give values to $R$ and I get different graphs similar to plant leaves. I would like to do it continuously, with Manipulate, in the interval $ 1.07\leq R \leq 1.71 $. Whether the leaf is ...
0
votes
0answers
32 views

How to add a custom indicator to InteractiveTradingChart or TradingChart?

I'm creating a prediction algorithm for certain stocks and I wanted to plot the result of my predictor against the stock's history. I wanted to create my custom "indicator" to add to a ...
1
vote
1answer
34 views

ContourPlot a list of equations generated by the Table command

The first command below produces proper contour lines while the second command produces an empty plot. I would think that the two commands should produce the same output. What's going on? ...
0
votes
1answer
131 views

Is it possible to fit such a large range plot in mathematica?

I am trying to solve the coupled differential equation numerically with Mathematica. But the range of values are large so mathematica cannot give correct plot. Here is the code: ...
1
vote
2answers
115 views

Can Mathematica produce zoomable plots, with embedded text of varying size?

I'm trying to figure out how do something on MMa that's fairly easy on Matlab. I some data points that each maps a numerical parameters to a point in 2D space. I need to plot the parameter values to ...
2
votes
1answer
55 views

Square brackets in axis label

Within the Plot[] environment I'd like to label one of the axes as $r\,\,[a_0]$ with square brackets to denote that $a_0$ is the unit. How can I achieve this? So far I've tried Text[Style[...
1
vote
1answer
103 views

Shooting Method for Numerical Solution

I am trying to solve the following nonlinear differential equation using the shooting method. The equation is a boundary value problem with boundary condition x[0]=Pi and x[Infinity]=0. In order to ...
3
votes
1answer
120 views

how To Improve that ComplexPlot3D

I have in mind the result of ComplexPlot3D[Log[MittagLefflerE[1/2, z]],{z, -50 - 50*I, 50 + 50*I}, PlotPoints -> 300,PlotRange -> All] In particular, the ...
1
vote
1answer
75 views

How to fix the plot Range in list log linear plot

I have 8 plots, and all these plots are generated using ListLogLinearPlot function. and later I have used Show command put all plot in one single figure, but could not able to fix the plot range. <...
1
vote
4answers
86 views

Adding plot options after @ in ListLinePlot [closed]

How can plot options like PlotLabel and PlotRange be added after @ in ListLinePlot? For example: ...
1
vote
1answer
77 views

How to construct a specific binary tree from a particular set of information?

I run a algorithm to solve a problem that return a set of information relative to a binary tree associated with these problem. For illustrate the results obtained I try to plot the binary tree. I make ...
0
votes
0answers
35 views

Density Plot going out of range

I am plotting a function Lkall (shown in the picture below) with two inputs temp and n1d, ...
4
votes
3answers
87 views

ColorFunction based on array index in ListLinePlot

ColorFunction specifies that for ListLinePlot it takes the $x,y$ data as inputs. I, however, would like to take the array index (...
0
votes
1answer
39 views

How can I make the length of all the vectors in a vector plot equal?

I tried ...
1
vote
2answers
85 views

Increasing the length of frame ticks

I know that I can manually adjust the frame tick length using FrameTickStyle. However, is there a way to globally increase the tick length?
3
votes
3answers
65 views

DateListPlot shaded area between Gridlines

I have been trying to figure out how to shade between Gridlines and I couldn't on my own, but found this post that almost has the perfect response except that the spaces between the frame and the ...
1
vote
1answer
71 views

Numerical solution to Differential equation

I want to get the differential solution numerically. I used wolfram alpha. here is the link. I tried this code on the Mathematica file. ...
0
votes
1answer
60 views

BoundaryDiscretizeRegion Plots does not work with ParametricPlot3D

I am trying wit this data ...
3
votes
1answer
212 views

Extending a 2d plot to 3d

So having trouble making a plot of this potential in 3D $\ U(x) = \frac{k^2}{4g} - \frac{k}{2}x^2 + \frac{k}{2}x^4$ This is what I have for 2D setting k = 1 and ...
0
votes
2answers
61 views

Different colors of ticks in the same listplot

I have the following vector: tn = {0.521084, 0.114895, 0.114895, 0.114895, 0.114895, 0.521084, 0.114895, 0.114895} I would like to try a ListStepPlot such that ...
0
votes
1answer
35 views

Adding an identifying letter to plots in a standard position [duplicate]

It is customary in many publications to mark diagrams with a large identifying letter - an example is shown below. What functionality in Mathematica is useful for adding such identifiers, and how can ...
5
votes
1answer
75 views

How Does StreamPlot Handle Singularity or Indeterminates?

I will like to know how StreamPlot finds its way around singular/indeterminate values. Actually, I was thinking of using ...
4
votes
1answer
61 views

Plotting :Change the format of numbers on the graph axis [duplicate]

I need to change the format for representing numbers along the abscissa. I want to keep numbers 0,2,4,6,8,10 and put the degree, for example, on the tab "time, * 10 ^ 9 seconds" or keep numbers ...
0
votes
0answers
18 views

Plotting DiracDelta series

I'm dealing with the Fourier Transform of the following signal: ...
2
votes
1answer
38 views

A ListPlot with multiple lines, fill to the axis, no thickness of the lines, and all fill in the same color

I have created the ListPlot shown below (from data in a multidimensional list), but it is not exactly what I aimed for. I aimed for everything shown, except I do not want any lines to border the ...
0
votes
1answer
29 views

How to plot the Imaginary values of a function

When i use the following code in Mathematica9 to plot the imaginary values of the function all the values are plotted on the Y axis. It is seen that the X values are taken as zero. ...
3
votes
0answers
55 views

Large Dynamic expressions and responsive UI's

I have a ListLinePlot with 40,000 points. When it's displayed on-screen the input fields are not responsive (text appears slowly well after the user is done typing)....
1
vote
0answers
25 views

How to plot a graph with fixed Frame width and height while keep PlotRange Automatic?

I'm trying to plot a graph and set Frame width and height by given numbers. However, I found I could only fix the Frame height, the Frame width varys with data plotted. For example, compare ...
4
votes
1answer
79 views

Colorize specific region in plane

The plane is divided into a grid and points is distributed on it. ...
8
votes
2answers
522 views

Contour plot of a sequence of spheres with increasing radius

I am trying to do a simple thing really, plot a sequence of spheres with increasing radii and I used a Do-loop to do it, but nothing happens, Please suggest what I can do to get the result I want? <...
3
votes
1answer
28 views

Permanently labeling events on a stock DateListPlot, perhaps using ToolTip?

I would like to add notes to specific days on a DateListPlot of a stock price, and have them always be visible (not just on mouseover). So far I've got how to add a tooltip to a specific day, but not ...
1
vote
1answer
89 views

Draw a figure made of lines and put labels on some

I want to put $ \Delta y_{1} $ in the magenta line, $ \Delta y_{2} $ in both red lines, $ \Delta L $ in the yellow line and $ L $ in the line that is continuation of $ \Delta L $. Either using my ...
0
votes
0answers
24 views

Contour 3DPlot of four sets of data

I have four different functions that can generate four different datasets. I want to be able to generate a single 3D contour of the result. I've tried many things and basically I am not getting ...
0
votes
1answer
49 views

Are there better ways to plot a continuous scalar function of three variables?

I am plotting a continuous scalar function of three variables with this code: ...
0
votes
0answers
16 views

Creating a region for Plot3D by using an interpolating function as limit

I have a function sigma[qr,q0] of two variables with a sharp delta-like peak that cannot be numerically integrated by NIntegrate, like this: Since the upper and lower regions excluding the peak are ...
3
votes
1answer
26 views

symbols in legend loose edge

I make my own symbols for plotting: ...
1
vote
0answers
20 views

ListContourPlot throw error when Log used in ColorFunction

When I run ListContourPlot[Table[10^(x + y), {x, -3, 3, 0.1}, {y, -3, 3, 0.1}], ColorFunction -> (ColorData["Rainbow"][(Log10@# + 4)/2] &)] Mathematica ...
0
votes
0answers
27 views

Change Dimensions of Plot Legend?

I have a ListLinePlot and would like to create a legend which has 21 different data sets plotted with a specific number of rows and columns. I have not been able to ...
2
votes
0answers
56 views

Plot3D: why certain part of the plot is excluded?

Here is a simple 3D plot, but some part of the plot is excluded. ...
0
votes
1answer
115 views

Member of a list

This list is given by $$ a_1 = 2, a_2 = 3, a_n = 2 \dfrac{a_{n-1}}{a_{n-2}} + 3a_{n-1}, \text{ for } n>2 $$ Find the 30th element of the list. Print the first 20 elements in a table and sort them ...
4
votes
1answer
57 views

How to connect 3 dots with 2 line segments when the dots come from different cells of GraphicsGrid?

I want to connect the 3 red dots to make the red dots depicted on the sinusoidal circular rather than elliptical. to make these 3 canvas are properly scaled such that joining lines are parallel to ...
4
votes
2answers
135 views

How to resize a plot?

After the plot is drawn I can change its dimension using the mouse. Is it possible to specify the dimension of the plot before it is drawn? I am looking for something like ...
4
votes
0answers
93 views

White triangles in ListContourPlot

I'm using ListContourPlot with InterpolationOrder -> 0 to plot some data and end up with some seemingly random white ...
0
votes
0answers
40 views

Plotting the solutions of parametric NDSOLVE[] as a function of its parameters

I am trying to solve a 2 set of coupled differential equations one using parametricndsolve and other using *ndsolve . So far I am successful in solving these equations. The solution I found by using ...