Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
0
votes
0answers
1 views
How to substitute functions with numeric values for a model running the variational package?
I have designed and running a model using the variational package. I need to now substitute numeric values and plot the graphs. Can anyone please help or guide with the command input I should be ...
4
votes
5answers
103 views
Sort list by day names (Monday, Tuesday, etc) [duplicate]
I have some dates in a list, and I want to plot how many of those dates are Monday, Tuesday, etc.
I'm using this:
data = {...}
Tally[DayOfWeek /@ data]
and I ...
1
vote
2answers
136 views
Define a color function using Piecewise
How can I define a ColorFunction for my ContourPlot using Piecewise? For example after ...
3
votes
2answers
74 views
How to display the support supp(f) of a piecewise function z = f(x,y)?
I'm wondering how to display the support $\mathrm{supp}(f)$ of a piecewise surface $z = f(x,y)$.
As an example, let's consider the following piecewise function (and plot it):
...
11
votes
1answer
314 views
PieChart with radial coloring/color function
I am trying to visually compare multiple functions that depend on a single argument running from $0$ to $1$. They describe a radial property and so I thought it would be nice to use a kind of ...
2
votes
1answer
73 views
Transcendental equation inside another equation when 3D plotting
I have been trying to solve this plotting problem myself, and I have received a lot of very useful advice from here on Stack Exchange - but I am now at a complete loss as to how to achieve the plot I ...
2
votes
1answer
64 views
RegionPlot3D Error
I have the following command:
RegionPlot3D[
Log[p1/(1 + p2)] > 0, {p1, 0, 0.5}, {p2, 0.5, 1}, {C, 0, 1}]
and my Mathematica 9 gave me the following error ...
1
vote
0answers
52 views
problem with exporting transparent object to pdf in version 9
Here is the code:
Export["~/Downloads/1234.pdf", Graphics3D[{Lighter[Black], Opacity[0.5],
Polygon@Table[{Cos[x], Sin[x], 0}, {x, 0, 2 \[Pi], 0.01}]}]]
in ...
2
votes
2answers
127 views
“Save Graphic As…” does not include plot legends
I am creating some plots with Show but unfortunately the PlotLegends seems to be out of the bounding box when saving the graph.
...
1
vote
3answers
123 views
Plotting 2D image of functions of several variables
I have a function $f: \mathbb{R}^4 \to \mathbb{R}^2$, and I would like to plot the region $f([0,1]^4)$. Writing $f_1(s,t,u,v)$ and $f_2(s,t,u,v)$ for each coordinate of the output I tried using ...
1
vote
1answer
56 views
Plotting a network or a graph with given coordinates for vertices
I'm new to Mathematica yet have coded a lot in MATLAB. Currently I'm working on a network simulation. My model is implemented in MATLAB, but I need to port it to Mathematica.
Here is my question:
...
4
votes
1answer
51 views
ListDensityPlot performance when scaling axes
I need to visualize 3D data having 200*200 data points.
ListDensityPlot is a good candidate, but it seems to have strange performance issues.
I created a small ...
6
votes
2answers
120 views
Plot3D constrained to a non-rectangular region
I would like to make a nice 3D graphic of a parabolic bowl, with a cylindrical rim. If I do the following:
Plot3D[x^2 + y^2, {x, -3, 3}, {y, -3, 3}]
I get a ...
0
votes
1answer
60 views
Module Returns Two Values for Plot; I need to Color them
This is probably a very stupid question, but I've been fighting with it for quite awhile now.
So suppose you have a module:
...
1
vote
1answer
96 views
Plotting a pattern made of repeating unit blocks but of changing width
I am plotting a pattern as illustrated in link shown below. I want to create an image of fixed size.
The whole image should be filled by repeating unit blocks which consist of black and green ...
11
votes
4answers
304 views
Visualization of Bivariate Distributions
I know it is perfectly possible to show the bivariate probability distributions in MMA. But my question is can we show each dimension of distribution in 2D dimension while we are showing the 3D plot? ...
1
vote
1answer
82 views
PlotStyle in ListPlot: change color scheme, manually choose color of first plot
Say i have this data:
data1 = Map[Cos, Range[0, 20]];
data2 = Map[Sin, Range[0, 20]];
And i want to plot data1 in gray and a ...
4
votes
1answer
112 views
How to draw a Circle in a graph with Log Y Scale
I've programmed drawing tools for graph images and am experiencing a problem with the coordinates of an Ellipse on a graph with a Log Y axis.
It's quite easy to work out the Y Axis coordinates for ...
-4
votes
0answers
43 views
Overlay function [closed]
I am using Mathematica 7. The Overlay function is not working in my computer.
-1
votes
0answers
53 views
Plot multiple “functions” in WolframAlpha [closed]
I tried to multiple plot in WolframAlpha using this command from the Forum:
...
25
votes
5answers
1k views
How do I plot coordinates (latitude and longitude pairs) on a geographic map?
I'm attempting for the first time to create a map within Mathematica. In particular, I would like to take an output of points and plot them according to their lat/long values over a geographic map. I ...
-1
votes
1answer
79 views
Why won't my function show in my plot? [closed]
I defined a function f as
f[x_] := x^3/(x^2 + 1);
and a function F as
...
0
votes
0answers
50 views
Contour plot of an interpolated input variable conditionally as functions of other inputs
I have evaluated a function of three variables.
Under loops of all three variables a list is generated for
the evaluated function.
I now like to have an idea how the first input varies in the
...
1
vote
1answer
68 views
Fixed color scale in multiple density plots with Fixed PlotLegends scale
From the great answer of Mr. Wizard, I would like to learn how to implement the associated PlotLegends scaled too. Here is the simplest example with PlotLegends, which does not look to be scaled:
...
5
votes
2answers
130 views
How to label axes in 3D plot adequately?
The following code produces plot with axes labels, which are jumping constantly.
...
0
votes
0answers
37 views
How to plot a graph of bay of bengal and marked known two coodinates (lattitude ,longitude) in that graph? [duplicate]
I want to get a map of bay of Bengal and marked two known coordinates in that map.How can I do that ? please enplane me.
5
votes
4answers
152 views
Aligning axes labels on multiple plots
I'm trying to create some "publication quality" figures, but Mathematica is fighting me all the way. So my question is: Should I switch to Origin? Please help!
Well, all joking aside: I'm trying to ...
5
votes
2answers
184 views
How to graph a series of coupled oscillators and watch the wave move along them
Here are the differential equations that set's up the 11 coupled oscillators.
...
30
votes
3answers
513 views
Why are my plots displaying behind the axes?
I need to create graphs with light gray axes and black lines. All of my plots display behind the axes. How can I make the plots display over the axes?
...
1
vote
0answers
35 views
3D plot changes it's size while rotating [duplicate]
When I am rotating drawn 3D plot by mouse it rotates Ok until mouse release. After that it slightly changes it's size instantly. Probably it tries to accommodate document layout or something.
Is it ...
2
votes
1answer
58 views
White spots in ListDensityPlot
I have a problem with ListDensityPlot.
I have some data on an irregular grid.
I try to plot them with
...
2
votes
3answers
121 views
Plotting the deformed shape of a rectangle
I want to plot a rectangle using graphics :
rc = Graphics[{Blue, Rectangle[{0, 0}, {1, 1}]}];
and add a deformation function to it:
$$\chi(\mathbf ...
5
votes
3answers
133 views
How do I find the intersection of a closed 3D curve given by numerical data with a specified plane?
I have a list of 3D data points which form a closed curve. My own data can't be easily generated analytically, but the qualitative behaviour is well represented by a parametric curve families such as ...
14
votes
4answers
414 views
Plotting a contour on a torus
There are two ways to consider a two-dimensional torus. One way is to take a parallelogram (let's say the square $[0, 1]^2$) and topologically glue the opposite edges. Another way is to look at the ...
0
votes
0answers
65 views
Troubleshooting duplicated plots
Everytime I draw a plot (I tried in many different ways and the result is always the same) using the kernel I get it twice. The one I want and a copy.
I tried, for example, with this code:
...
0
votes
0answers
38 views
Is there a way to add arrows along a parametric curve inside a manipulate function? [duplicate]
I cannot find a good way to add arrows along a parametric curve that I used NDSolve to get. I have written everything inside ...
0
votes
0answers
45 views
Change the order of magnitude on the y axis Ticks with ListPlot
I have some data plotted with ListPlot.
The values on the y axis range from -411230.40068*10^9 to -411230.20005*10^9.
Mathematica, when plotting the data, shows me on the y axis only the value ...
9
votes
4answers
173 views
Plotting ErrorBars with a different style
I would like to plot the error bars of ErrorListPlot with a different style than the points. I know of ErrorBarFunction, but ...
3
votes
2answers
85 views
Animated Vector plot
I'm trying to make an animation of a time-varying 2D vector field. However, I'm got a difficulty in that Mathematica normalises the length of the vectors with each call to ...
1
vote
2answers
143 views
Finding normals to a curve through a given point
I want to find x on curve $y(x)$, where curve $y(x)$ is perpendicular to point $(x_0,y_0)$.
for this I minimize the distance between points $(x,y(x))$ and $(x_0,y_0)$, here's an example for point ...
1
vote
1answer
286 views
BodePlot Phase disagrees with convention. How do I make it agree? [closed]
This question is similar to a previous question, but I did not find an adequate answer there.
If I type in the command BodePlot[1/(s^2)] I get a horizontal line ...
2
votes
2answers
372 views
How to fix BodePlot that comes with Mathematica?
I am using Mathematica to go through the examples and exercises on the book Modern Control Systems, 6th edition by Dorf. On page 605, there is a table (Table 8.5) with the Bode plot for several ...
16
votes
2answers
286 views
Helio chart for canonical correlation
I'm trying to create a chart usually called "Helio chart". It's a chart type very suited for canonical correlation analysis involving several dependent and independent variables.
However, it is a ...
2
votes
4answers
119 views
How to improve the quality of the ListPlot output
I need to plot massive data stored in external ASCII files. Below is the Mathematica code I use for this job:
...
0
votes
1answer
85 views
Scatterplots for subsets of multivariate data
I have a series of multivariate datasets, grouped as subsets within a nested list, that I want to visualise in a scatter plot array.
@0x4A4D's answer to this question: "Creating a data1 versus data2 ...
4
votes
1answer
153 views
Transcendental equation with ContourPlot3D
I am still a newbie to Mathematica, so I am still getting used to the syntax and logic of the program - but I've been trying to do the following 3D plot:
...
8
votes
2answers
357 views
Basins of Attraction
How does one shade the basin(s) of attraction of a phase plot in Mathematica? I have been trying to do this using the system
$$\begin{align*}
\dot x &= y\\
\dot y &= -9\sin(x) - 0.20y
...
4
votes
1answer
95 views
Dynamic legends involving show
My question is how do I get dynamic legends (legends that turn data on/off) to work with Show? This is an extension of an old question here;
How to dynamically toggle curves on/off in a crowded ...
8
votes
2answers
232 views
How do I create an ellipse bubble chart?
I have some data that I would like to plot as a bubble chart. The data is formatted as {{val1_mean,val1_sd,val2_mean,val2_sd},{val1_mean,......}}. What I would like to do is plot a bubble chart where ...
20
votes
2answers
448 views
Making a presentable BarChart
I've been asked to reproduce a bar chart generated in Excel in Mathematica. The original Excel chart looks like this;
My Mathematica version looks like this;
There are a couple of things wrong ...





