Questions tagged [plotting]
Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
15,610
questions
0
votes
0
answers
213
views
How to explicitly set horizontal coordinates when plotting multidimensial Table using DateListPlot?
I'm trying to plot a multidimensial data table which is stored in csv file.
Like so:
...
0
votes
0
answers
71
views
Problem in using FrameTicks option in DateListPlot command
everyone.
I have prepared a code in which a file of data to be called and its data will be used to make a plot. I wanted to divide the x axis, as I needed but the output is not what I need. I want to ...
0
votes
0
answers
146
views
Solving equations involving NIntegrate
First, I have defined some functions like
...
0
votes
0
answers
180
views
Plotting a distribution of charge into a sphere? [duplicate]
I have defined a function $\sigma(\theta, \phi)$ (With the same angles defined by spherical coordenates) for the induced charge on a sphere with constant radius $R$, but my problem lies that I dont ...
0
votes
1
answer
96
views
How to plot a function defined in considerable time with Plot3D
I'm trying to plot a function as follows:
...
0
votes
0
answers
26
views
Densityplot gives unexpected result [duplicate]
I want to plot the density of this function:
...
0
votes
1
answer
96
views
How to have a 2D icon (imported image) as a 3D point in a table of points?
I'm following the tutorial on RandomPoint seen here:
...
0
votes
0
answers
137
views
error with NDSolve
I'm trying to plot u as a function of t by NDSolving a set ODE's
The problem is like:
Parameters:
...
0
votes
0
answers
186
views
Datelistplot and datasets. Plotting several time series with mapping functions and adding options
Following the post How do I plot multiple time series from a Dataset?, I have additional questions.
I have a dataset with four columns. First is the date. 2nd to 4th are values (v1,v2 and v3).
...
0
votes
0
answers
103
views
Finding all pairs of common tangents in a curve
My question is kind of an extension of a question asked previously (Common tangent to a curve) . The difference is that(instead of just one pair) I need to find all pairs of common tangents to a plot. ...
0
votes
1
answer
1k
views
How to use mathematica to maximize a function of two variables with respect to one variable, and get the corresponding function for another variable [duplicate]
formally, what i want to do is to maximize f(x,y) with respect to y. so i can get another function $f^*(x)=max_y(f(x,y))$, which means the maximum value for all y at a fixed point x.
if it is not ...
0
votes
0
answers
163
views
Vectorize the ticks labels of the legend of a histogram density plot
From a previous post Remove artifact of PDF images I am using the following function:
...
0
votes
0
answers
121
views
Exporting a SmoothDensityHistogram[] to PDF gives a result with large file size
I have the following plot code
...
0
votes
0
answers
131
views
Numerical errors in Plots
I am having quite a bit of trouble with some plots I am trying to create. Basically, as I decrease a positive parameter 'mu' to below 10^-8, my ListPlot3D plots are becoming fuzzy and eventually just ...
0
votes
1
answer
99
views
PlotRange working only with some ListDensityPlots
I'm trying to compare simulated data to the recontruction of said data by a program I made after adding noise to the data. My original data is stored in a matrix called ...
0
votes
0
answers
173
views
Unexpected black lines on the edge of a RegionPlot3D
I want to create the following 3D solid object, which is an octahedron, cutting by six spheres centered at its vertices.
The code is as:
...
0
votes
0
answers
22
views
Why does Plot of Table uses the same color rather than Plot of explicit List? [duplicate]
The command
Plot[{Sin[x], Cos[x]}, {x, 0, 10}, PlotRange -> {0, 1}]
plots
i.e. different functions plotted with different colors.
Simultaneously
...
0
votes
0
answers
88
views
Plotting DSolve solution on Vector Field [duplicate]
I created a Vector Field for the given problem:
Then I solved the problem with certain parameters using the DSolve command, receiving this solution:
I want to know how I can plot this solution on my ...
0
votes
0
answers
77
views
Could not combine error [duplicate]
I used below code to combine two objects, but there is an error:
Could not combine the graphics objects in Show
The code is:
...
0
votes
0
answers
365
views
Plotting vector field using StreamPlot of VectorPlot doesn't work properly in some cases
I tried to plot a vector field in a determined region by two methods: 1- VectorPlot and 2-StreamPlot:
...
0
votes
1
answer
468
views
Contour Plot using NDSolve
I want to make a contour plot of the function $S$ using the following code taking $x$-asis along the horizontal and $y$-axis along vertical.
...
0
votes
0
answers
96
views
Logarithmic scale in a contour plot [duplicate]
How to graph the function $$ \frac{E(\sigma_\rho,\sigma_z)}{N\hbar\bar{\omega}}=\frac{\bar{a}^2}{4}\left(\frac{2}{\sigma_\rho^2}+\frac{1}{\sigma_z^2}\right)+\frac{1}{4\bar{a}^2\lambda^{2/3}}(2\sigma_\...
0
votes
0
answers
62
views
Solving Inequality involving Sum of PrimePi's
I am trying to figure out if for each $n$ we have
$$\sum_{i=1}^n\pi (2^i)+(1-1/2^n)\Bigg(\sum_{i=1}^{\lfloor n Log2/Log3\rfloor-1}\pi(3^i)+\sum_{i=1}^{\lfloor n log2/log5\rfloor-1}\pi(5^i)+\cdots+\...
0
votes
0
answers
77
views
How do I plot multiple lists that were assigned variables created in an iterative fashion from a larger matrix?
I have a 70x16 array of values ("DATA22K") imported from a .xls spreadsheet, with the x-values (time) being column 1, and the fluorescence intensities of 15 samples (over time) being columns 2 thru 16....
0
votes
0
answers
30
views
Why does Mathematica use a dashed line for a contour line with this specific value? [duplicate]
I am trying to draw the contour lines of the following function, but I don't understand why the contour lines with value 0.5 and -0.5 are shown in dashed lines.
$f(x,y)=\dfrac{xy}{x^2+y^2}$
...
0
votes
0
answers
83
views
Difficulty plotting a null cline [duplicate]
Problem Statement
Pplane produces this phase plane portrait:
Note the yellow line which represents the locus where $\dot{y}=0$.
My attempts to recreate this plot in Mathematica have failed.
The ...
0
votes
0
answers
61
views
Plotting 'partial' dashed lines along selected intervals for a curve represented by any arbitrary function
I have
fixedpoint = x /. Solve[f[x] == x && -1 <= f[x] <= 1, x]
The stability of the fixed points are governed by the absolute value of the ...
0
votes
0
answers
27
views
Plot3D including units [duplicate]
I am trying to plot a 3D plot with a formula containing units.
When I put the formula explicitly it works:
...
0
votes
0
answers
45
views
0
votes
0
answers
89
views
Plotting a partial sum with imaginary numbers on exponentials
Exercise
Given
Given
$\qquad f(x)=\sum\limits_{n=-\infty}^{\infty}f_{n}e^{i\,n\,x}$
where
$\qquad \left \langle f,g \right \rangle = \frac{1}{2\pi}\int_{-\pi}^{\pi}f\,g^{*}\,dx$
...
0
votes
0
answers
39
views
Add legend in a Graphic inside a Manipulate [duplicate]
I use this manipulate:
...
0
votes
0
answers
515
views
Plot Legends size
I use 2 similar Manipulate: the difference between one and the other is only the function that they draw.
...
0
votes
1
answer
296
views
Solving a system of differential equations including a discrete time function
Given a graph of $N$ nodes, I would like to solve the following set of differential equations:
where $G_i'(r,s)\triangleq \frac{d G_i(r,s)}{ds} = \Big(1-L_i(t) - I_i(t)-B_i(t) - C_i(t)\Big)\sum_{j=1}^...
0
votes
0
answers
110
views
Graph with answer box
I use this Plot to generate the graphs of Sen[x], Cos[x] and Tan[x]:
...
0
votes
0
answers
153
views
How to draw local trend lines and divergence lines?
Here are two lists as lstClose and lstCCI, the lstCCI is computed from ...
0
votes
0
answers
721
views
How to add Arrow in plot with text next to it? [duplicate]
How do you add an arrow as in the picture, with some text next to it?
LogLogPlot[{x^-2, x^-3}, {x, 0.001, 100}, PlotRange -> Full]
I tried with:
...
0
votes
0
answers
29
views
Plot the function by excluding one variable from from the first derivative of the function
There is a function f(r,T) and df(r,T)/dr=0. From the equation T is not found explicitly. I want to plot the function f(r) using the df(r,T)/dr=0. How can it be plotted excluding T from the equation?
0
votes
0
answers
75
views
ListPointPlot3D small and large values [duplicate]
I am using ListPointPlot3D for visualizing the difference between two functions. The difference sometimes can be really small on the order of 10^-50 or smaller. There is cut-off where I can not see ...
0
votes
0
answers
39
views
Do with Plot command [duplicate]
In William T. Shaw's Complex Analysis with Mathematica textbook, written for Mathematica 5, he has this command in his exercises:
...
0
votes
0
answers
169
views
How to Rotate a 3DPlot with a dynamic controller and export in .gif or .avi? [duplicate]
I would like to have the following 3DPlot to Rotate around a vertical axis defined within the ...
0
votes
0
answers
65
views
How to iteratively change RGB style in Show[Table[ListPlot[...]]] and create a Legend?
I am trying to plot the outputs of a ListPlot with different colors for the 3 different cases and create a legend. I have tried with a simple For cycle, but then ...
0
votes
0
answers
79
views
(Naive) Manual implementation of DFT results in long sum which is very inefficient to plot, can my approach be saved?
I will do my best to keep this question as short as possible, I am afraid though that I wont be able to get my issue across if I don't elaborate on the background and provide my code as an example.
...
0
votes
1
answer
69
views
Plotting Multiple Curves for a Solution of a Coupled Set of Equations
I solve a coupled set of equations and then plot a function of the solution versus m. I would like to add a few curves on the same plot for different pairs of ...
0
votes
1
answer
251
views
ListLogPlot with negative errorbars
So I have been reading Plotting Error Bars on a Log Scale
on how to implement errorbars with a logarithmic y-scale but I have another problem: some of my errorbars are negative values and I don't know ...
0
votes
0
answers
133
views
Resolution Problem of Contour Plot (Local)
I have a smooth function which near one point has a very rapid change, a peak with a very very narrow width!
That if I plot the blank region with a function like r= -18.5+20.6 Tanh(u) at r->2
I want ...
0
votes
0
answers
31
views
Overimpose several plot on increasingly small grid
I would like to produce a single plot of a function defined over discrete points in [-1,1] as I increase the number of points while shrinking the distance.
...
0
votes
0
answers
147
views
ListPlot3D: Multiple Values at One Data Point
Setup: I am using ListPlot3D[] to plot a data set of three independent variable and one output value, $f(x,y,z) \to w$.
Because ...
0
votes
0
answers
160
views
Why is this not a circle? [duplicate]
sols = y /. Solve[(x - 4)^2 + y^2 == 4, y];
Plot[sols, {x, -5, 5}, PlotStyle -> Blue, AspectRatio -> 1]
When I plot it, I would expect a circle centered at ...
0
votes
1
answer
139
views
How can I make ListPlot use my iteration as the x coord?
I have some code that takes a list of energies, plugs them into a set of recursion relations and numerically solves for each energy (15 energies total) and for each n(modes, 21 total)
...
0
votes
0
answers
91
views
multiple Numeric integral calculation lasts forever
I'm plotting some multiple numeric integral and after 16-17 hours(i7-6700k 4.2 GHz) I didn't get the result. I tried to avoid all secondary calculations, input functions directly, disabled Symbolic ...