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

learn more… | top users | synonyms (10)

0
votes
2answers
155 views

Bifurcation diagram for 1D ising model

I'm new in Mathematica, I want to plot a bifurcation diagram for a complicated Ising system with dynamics that I'm working on, but to get familiar with how to perform it on Mathematica I wish to start ...
1
vote
2answers
157 views

Plot a line half dashed and half solid [duplicate]

Hi I'm plotting several curves and want one of them to be dashed when negative and solid when positive, any idea how this can be obtained? This is what I have so far ( example ): ...
3
votes
2answers
115 views

How to animate multiple sets of XY data

I have nine sets of data with $(x,y)$ coordinates that are the position of a particle. I can ListPlot the particle positions on a single plot, but, I want to ...
1
vote
1answer
104 views

Plot Meijer G function [closed]

How to plot using Mathematica the Meijer G function $$ G^{m l}_{p q} \left(\omega t \ \Bigg\vert \ {a_1,\cdots,a_p\atop b_1,\cdots,b_q} \right) $$ Thanks
3
votes
3answers
210 views

flipping y axis

I know that some topics were created for this subject but any solution works for me. I would like to reverse the y axis. By this I mean that I would like to have the highest values at the bottom and ...
2
votes
1answer
57 views

How does RootLocusPlot handle TransferFunctionModel

I'd like to analyze the poles (denominator-roots) of a TransferFunctionModel, that was generated from a ...
0
votes
1answer
170 views

TransferFunctionModel and BodePlot shows different result between Mathematica and Matlab

I was doing the TransferFunctionModel and BodePlot. But the result from Mathematica and Matlab are different. The function is as follows: ...
1
vote
1answer
81 views

Trajectories of system of parametric equations

I have to obtain plots of trajectories for (theta(t),u(t)) and then overlay them with a contour plot. The overlaying with the contour plot it is easy. What trubles me though is the trajectory part. ...
4
votes
1answer
74 views

Contour lines on a 3D plot

I have the following function. BetheSalpeter[Q2_, ν_] = (g^4 (-1 + x[Q2, ν])^2 x[Q2, ν]^2) / (32 M pe1 π Q2^2 (m^2 + M^2 (-1 + x[Q2, ν]) x[Q2, ν])); Where ...
2
votes
2answers
110 views
6
votes
1answer
58 views
22
votes
3answers
3k views

How to get StreamPlot to draw many hundreds of streamlines?

For artistic reasons, I want to draw an extremely dense StreamPlot with something like a thousand streamlines. I tried setting ...
1
vote
2answers
63 views

Formatting legend text font multiple times

I have the same question as asked in this question. With the difference that I want to change multiple legend entries. I tried: ...
7
votes
3answers
1k views

How does one plot a Möbius Strip?

How can I plot a Möbius strip? I tried this one, but I can't get it to work: ...
6
votes
2answers
181 views

Mathematica 10.2 break downs when `StreamPlot`-ing

Bug introduced in 9.0.0 and persisting through 10.2 or later This code meets error: ...
0
votes
0answers
25 views

Simple Two-Axis Plot in Mathematica? [duplicate]

Is there a simple way to implement a two-axis plot in Mathematica? On Quora.com there is a suggestion to use Show to combine two different plots with the same x-axis domain and with y-axes on ...
0
votes
1answer
99 views

Plotting the PDF of a Binomial distribution [closed]

I want to plot the histogram and pdf of 2 X - 100 with X a binomial distribution, but I'm having trouble with the pdf -- I just ...
6
votes
1answer
244 views

Simulation Sample Paths for Stochastic Approximation Algorithm

Let $X_t$ be IID random variables in $[0,1]$ and CDF $F(\cdot)$. Suppose there exists a variable $Y_t$ given by: $Y_1 = X_1$ and $Y_t = \phi(X_t, \overline{Y}_{t-1}), \forall t >1$, where ...
2
votes
1answer
39 views
1
vote
1answer
108 views

DateListPlot not showing any ticks

With a vector dates (in DateList format), and a vector data that has the same length as ...
4
votes
1answer
183 views

puzzled with ColorData [closed]

At first let me thank, from this point as well, those that they replied to my previous queries. From a reply I got, I obtained finally the desired graph. ...
1
vote
1answer
79 views

Introducing dashing to distinguish curves in a multiple curve plot

To combine in 1 plot data with 2 scales, I use the following solution: ...
0
votes
1answer
208 views

Problem with ListContourPlot feeding data format and WeatherData

With following code I am trying to show the mean wind speed patterns for a few geographic locations. ...
8
votes
3answers
1k views

plotting a {{Latitude,Longitude}} list on top of a GIS shapefile

I have a dataset composed of points specified in {Latitude,Longitude} format. Call it latlong for the purposes of this question. It displays properly with ...
5
votes
4answers
631 views

Plotting piecewise functions

I have a list of N functions called functionList. N can be any number. Also, I have a list ...
3
votes
1answer
308 views

Plot A Function Of A Stochastic Process

I am trying to do something very simple in Mathematica 9. I want to play around with option pricing and for that I thought it best to use the new stochastic process functionality. So, first of all I ...
18
votes
5answers
2k views

Make legend same height as plot

One common style for density plots is to have a vertical legend that is the same height as the plot itself. Some example density plots from Google Image search: How can we make DensityPlots with ...
0
votes
1answer
38 views

Shade where a function f lies below a function g [duplicate]

I have two functions: f[x_] = 2 Cos[x] g[x_] = -Sqrt[3] I find the points of intersection. ...
0
votes
1answer
88 views

Mathematica 10.0: how to manipulate a plot where a line comes from a system of equations without an explicit solution? [closed]

My goal: I am using Mathematica 10.0 to draw several graphs according to different values of a number of key parameters. The graph is made of two functions. Challenge: One of the functions is a ...
-2
votes
2answers
67 views

How to plot relation in mathematica? [closed]

How to plot relation here? I want to plot -arctan(sin(x))*(x)+ arctan(sin(x))*(y)=sin[arctan(sin(x))*(y)+ arctan(sin(x))*(x)]
2
votes
2answers
434 views

Plot Lorenz system

I solved the Lorenz system by using Euler forward method (without using NDSolve). But I am not getting the attractor. The Mathematica code is as follows ...
5
votes
1answer
244 views
6
votes
2answers
406 views

Plotting 2-D Electron Density Carbon Atoms

I need to create a 2-D electron energy density plot in Mathematica to compare with my STM experimental results in my lab class. This would be done by plotting the sum of the symmetric and ...
1
vote
1answer
84 views

How to plot the field of values of a matrix

For a given matrix A (let's say of dimension 2 to keep it simple), I need to plot in the complex plane its field of values. The field of values of a matrix is defined as the set $\{\langle{Ax, ...
3
votes
2answers
169 views

Easier way to save images? [duplicate]

I seek to save my plots without having to save them one at a time. To give you an idea of what I am working with. I am dealing with the eigenbasis of a 50 by 50 tridiagonal matrix. I have plotted each ...
2
votes
2answers
84 views

Range of plot function does not accept Dynamic output [duplicate]

Below is some code to produce a Fourier series. I want to be able to adjust L to change not only the function, but also the plot limits. I am getting the error : ...
1
vote
1answer
214 views

Fixed colors for fixed values in contourplot legend

I am trying to make a contour plot of a gravitational potential, consisting of a sum og different potential.s. I would like to plot them separately with a BarLegend that has the same colors for the ...
1
vote
1answer
200 views

Plotting (x^3 - x^2)^(1/3) gives unexpected results [duplicate]

I have a function g[x_] := (x^3 - x^2)^(1/3) that I want to plot. The plot I am getting gives me strange results. There is nothing plotted for ...
2
votes
1answer
72 views

Plot a function with respect to two parameters that are not explicitly function parameters

$$function = |\delta|\frac{I_1(\kappa)}{I_0(\kappa)}$$ where $I_0(\kappa)$ and $I_1(\kappa)$ are the modified bessel functions of the first kind of order $0$ and $1$ I want to plot the function in ...
0
votes
0answers
40 views

Compare different speeds of parametrizations in same animation box

I recently taught my calculus III students about arclength parametrizations, and I wanted to show them the different parametrizations in action, but in Mathematica, there seems to be a default speed ...
0
votes
2answers
91 views

Please, help to find the area enclosed by the curves: ContourPlot[{x + y^2 == 0, x + 3 y^2 - 2 == 0}, {x, -2, 2}, {y, -2, 2}]

Please, Help to find the area between two curves. ContourPlot[{x + y^2 == 0, x + 3 y^2 - 2 == 0}, {x, -2, 2}, {y, -2, 2}]
3
votes
1answer
97 views

RegionPlot looks wrong

I have the following simple RegionPlot of a RegionUnion: ...
1
vote
2answers
141 views

RegionPlot with Assumptions

I am trying to evaluate the properties of a multivariate function $f(a,b,x,y)$ with respect to $x$ and $y$ given assumptions for $a$ and $b$. An example without $a$ and $b$. ...
0
votes
1answer
119 views

How to plot zeros of confluent hypergeometric function

I am fairly new to mathematica so I need a little bit of help. I need to plot the zeros of an equation containing confluent hypergeometric functions. The equation i need to solve is given by the ...
8
votes
3answers
396 views

Shading a region where an inequality is satisfied

I'm creating solution sets for a calculus course and need to shade the region in $\mathbb R^2$ such that $x^2 < y < x^4$. This is what I have so far: ...
3
votes
3answers
269 views

What is a good way to display many discrete probability distributions on the same plot in Mathematica?

For something like 2 to 30 distributions each with 2 to 30 values. If we assume the distributions have unique values, a standard stacked bar chart is insufficient, but maybe something similar would ...
2
votes
2answers
148 views

How to correctly scale the x axis?

I am not absolutely sure how to formulate my question but here is my first attempt: I have 25 rods with lengths in cm ...
8
votes
1answer
103 views

Minimizing NExpectation for a custom distribution

As discussed and advised in Meta: Migrate a question..., I've copied a 2012 posted question from StackOverflow (posted before this site began running), which has gotten a lot of attention (but after 3 ...
1
vote
3answers
98 views

DensityPlot is wrong

DensityPlot[( ArcCot[(2 y)/(1 - 2 x)] + ArcCot[(2 y)/(1 + 2 x)])/1, {x, -10, 10}, {y, 0, 10}] What it should look like: What it looks like:
1
vote
1answer
77 views

Plot column using some list as x values? [closed]

I've got a mathematica notebook that uses RK4 to successively approximate solutions to a vector valued DE. The output is a nested list similar to: ...