Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
1
vote
Color coded background of a 2d Plot and a density plot
workInProgress...
lines = Table[{{x, 0}, {x, 1}}, {x, -2, 2, 0.01}];
>
Show[
Graphics[{Hue[LogisticSigmoid[#[[1, 1]]]], Line[#]}] & /@ lines,
Plot[E^-x^2, {x, -5, 5}, PlotStyle -> Black], …
0
votes
Accepted
Show ready-made plots with different style
I recommend adding a PlotStyle to each plot and being patient
Show[MapIndexed[#1 /. {{a__, Line[b__]} :> {a, ColorData[97, First@#2], Line[b]}} &, {plot1, plot2, plot3}]]
but here is a way to do i …
4
votes
Plotting vector field in polar coordinates
Mathematica needs a coordinate-system option in VectorPlot.
For now a nice way to plot non-Cartesian fields is to use TransformedField which handles scalar, vector and even tensor fields.
Consider t …
3
votes
2
answers
187
views
How to make columns different colors in an ArrayPlot?
Consider an ArrayPlot of some arbitrary matrix with values between zero and one.
matrix = {
{0.1, 0.1, 0.1}
, {0.3, 0.3, 0.3}
, {0.5, 0.5, 0.5}
};
I want to plot this …
3
votes
How to make columns different colors in an ArrayPlot?
Apparently ArrayPlot accepts a matrix of color swatches.
So one way of achieving the desired result is to replace all of the elements of the matrix with corresponding swatches. This can be done using …
8
votes
Why is this plot drawn so poorly? Can I draw a better image?
How about a ContourPlot ?
ContourPlot[
{
y == 4
, y == 4 - 4 ((1 - x^4)^(1/4))
}
, {x, -1, 1}
, {y, -1, 5}
, PlotPoints -> …
5
votes
Accepted
The white line on DensityPlot
Try adding a PlotPoints option to increase the quality of the plot.
For instance, PlotPoints->100:
Note: You didn't supply a value for x0 so I set x0=0 below.
x0=0;
y0=1/Sqrt[2];
ga=1;
theta=Pi/2;
J= …
5
votes
How to plot a sphere with Cartesian coordinate axes?
Show[
Graphics3D@{Arrow[{{0, 0, 0}, {1, 0, 0}}]},
Graphics3D@{Arrow[{{0, 0, 0}, {0, 1, 0}}]},
Graphics3D@{Arrow[{{0, 0, 0}, {0, 0, 1}}]},
ContourPlot3D[
x^2 + y^2 + z …
3
votes
Accepted
Iterate over days of year to make a list/graph
solution with DateListPlot
Clear[f,g]
f = Function[x, DateObject[{2016, 1, 1}] + Quantity[(x-1), "Days"]]
g[d_] := (DateValue[d, "Month"] + DateValue[d, "Day"])
listOfDates = Table[{f[d], g[f[d]]}, { …
11
votes
5
answers
6k
views
Polar contour plot in Mathematica?
I am following a text on fluid mechanics with MAPLE examples.
I want to do the following ContourPlot in Mathematica in Polar coordinates:
$$ (r^2-\frac{a^3}{r}) \sin^{2}\theta$$
where $a=1$
cValues = …
0
votes
calculate missing values, Interpolation
Machine Learning
some vanilla classics:
Neural Network
Decision Tree
Gaussian Process
Nearest Neighbors
Borrowing the formatting from @kglr 's answer above:
gasprices = {{{"Year", "EUR05/GJ"}, {2000 …
6
votes
How to visualise the area between polar curves using filling option?
You can use ParametricRegion and overlay it on your original plot using Show:
Show[
Region[ParametricRegion[(w*θ + (1 - w)* Exp[θ]) {Cos[θ], Sin[θ]}, {{θ, 1, 1.2}, {w, 0, 1}}]]
, PolarPlot[{ …
2
votes
2
answers
6k
views
How to make a bifurcation diagram of the Lorenz system under a varying parameter value?
I'm trying to represent the behaviour of the system $\color{red}{r}$ varies from $\color{red}{1}$ to $\color{red}{100}$ statically (for instance something similar to a bifurcation graph)?
\begin{alig …
4
votes
3D scatter plot with crosses
InputForm[ChemicalData["Methane", "MoleculePlot"]]
moleculePlot[poiints_] := Show[Graphics3D[
{
Translate[
GraphicsComplex[
{
{0.0115361, -0.00644059, -0.0023318},
…
5
votes
Accepted
Is Mathematica capable of producing 2d contour plots from .txt files with the contour levels...
I would approach this by experimenting with a tiny version of the problem.
Here is a 5 column .txt file I made:
http://pastebin.com/wCPxdvQB
Download it and Import it into your session with:
data …