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

learn more… | top users | synonyms (5)

3
votes
2answers
217 views

Legend Matrix Plot

I have the following problem. I'd like to add a legend to Matrixplot. Each colour should have a legend entry. I used PlotLegends, which works in principal. If I use more than five colours this doesn't ...
1
vote
0answers
106 views

How to plot feasible objective space of a Generic Multiobjective Optimization problem?

As you know, a generic Multiobjective optimization problem can be stated as follows: $min{\space}F(\bf{X})=[f_1(x),...,f_n(x)]$ $h_k(x)=0{\space\space\space} k=1,...,n_e$ ...
-2
votes
2answers
49 views

How to highlight (differentiate) negative numbers in plots? [closed]

I want to clearly see negative values in 3D plots. How can I do it?
0
votes
1answer
102 views

How to put a condition in 3d plotting

I have the following plotting question: First I want to have 3D plot of Alpha respect to different values of p and l when we ...
0
votes
0answers
34 views

How to change the plot starting point? [duplicate]

I tried to translate this Python plot to Mathematica: Python: Mathematica: ListLinePlot[RandomReal[{0, 1}, 10], Filling -> Axis] The Mathematica code ...
4
votes
1answer
101 views

Figure with fill

I want to make a figure like this In Mathematica 9, to fill it with a grid inside (and necessary without part of the grid outside), but to generate this picture, I need to graph two semicircles and ...
0
votes
0answers
126 views

2d perspective projection of a sphere

I am looking for improved quality of 3d plots. I don't want to keep the object in Mathematica notebook - just export it to a .pdf file. Because it will be just one "side" of the plot I was thinking ...
0
votes
1answer
116 views

how to scale the plot of PDF (t-distribution)

The directions in my book say: "To sketch the t distribution in Figure 3.11, simply multiply the abscissa t value by the scale factor and plot this against the ordinate of t at that point." So ...
-1
votes
1answer
98 views

How to get a 3D plot of from the the solutions of function [closed]

I have the following equation: (1 - x)^2 + T^2/((f[x] - L)*(f[x] - L - 2*T))*(P/(N-R+S)) == 0 f[x] = (x*r*(T + L) - T)/((x*r) - 1) ...
4
votes
2answers
109 views
0
votes
1answer
84 views

Plotting results of a NSolve problem

I am calculating, numerically, the zeros of a determinant. a1 and a2 are constants, q is a parameter. I would like to vary q and find the roots w as a function of q and plot roots w vs. q. All ...
0
votes
1answer
80 views

Having trouble displaying imported Excel regression data [closed]

The plot points and residual lines are not showing, hard-coded data works, and imported data does do something, just not what its supposed to Is the table or the plot range the wrong size? I can't ...
8
votes
1answer
202 views

Plot that draws a dashed/solid curve depending on the y-value of the curve

Kind of as an extension of this question: How to plot a series using different colors depending on the y-value Is there something similar to MeshFunction or ...
1
vote
1answer
83 views

MatrixPlot Styling

I like to build a colour sequence from a list. Each value has a corresponding colour. I used MatrixPlot to do that. I have two question concerning MatrixPlot styling. Code: ...
1
vote
3answers
178 views

Sketch a cone and its base

A cone is the union of a set of half-lines that start at a common apex point and go through a base which can be any parametric curve. Show that the graph of z = ( x ^2 + 4y ^2)^(1/2) is a cone. What ...
1
vote
3answers
132 views

How to plot a histogram given a set of frequencies for data values?

I have generated many random variables within a specific function, and have counted them up. So far, I have counted the variables: ...
2
votes
2answers
120 views

ContourPlot of Or expression [closed]

How can I get the following to produce a plot of the two circles? ContourPlot[Or[x^2 + y^2 == 1, x^2 + y^2 == 1/4], {x, -1, 1}, {y, -1, 1}]
0
votes
2answers
119 views

Why won't this graph? [closed]

I'm trying to sketch level curve for z=k for the specified values of k={-2,-1,2} of z= 4x^2 - 4x + y^2 + 2y So I changed ...
2
votes
1answer
110 views

StreamPlot of a square-root - Issue

When I plot ...
3
votes
1answer
110 views

Automatically zoom-out on ListPlot?

Mathematica chooses the PlotRange for a ListPlot such that the lowest x-value lies on the y-axis and vice versa. Because of this these points often are difficult to find. I could increase the dot ...
2
votes
1answer
123 views

StreamPlot segmented lines

I am plotting this vector field: ...
0
votes
1answer
144 views

Plotting an extremly large output

I'm trying to plot the solutions of this determinant: ...
1
vote
2answers
129 views

Using Placed with Show - the simplest solution to move the legend around?

Please let me know if this is a duplicate. There are some solutions, but I think there must be something simpler for this kind of situation. ...
1
vote
1answer
107 views

How do you graph the confidence intervals that results from a GARCH over a time series?

Please, does someone know how to draw a confidence intervals (from the results of a GARCH (1,1)) in a way similar to these: *Asume an ARMA(1,1) fit the time series. Thank you very much
1
vote
0answers
115 views

How can I model the volatility, using a GARCH(1,1), of a time series of returns (and plot it) using Mathematica?

I know that if I use this code: tsm = TimeSeriesModelFit[ret, {"GARCH", {1, 1}}]; I can get the parameters using this: ...
0
votes
1answer
71 views

Third-order ODE with NDSolve

I would like to use NDSolve to draw the integral curve of a third-order ODE ...
2
votes
3answers
88 views

Efficiently plotting a function with its translates?

How does one efficiently produce a plot of {f[x], f[x]+1}? Assume that f[x] is a long computation, which I would like to avoid ...
2
votes
1answer
97 views

Methods for producting alternating TickLabels in a Plot?

I am producing a plot with alternating TickLabels. Here is a MWE: ...
2
votes
3answers
84 views

Mathematica Contour Plot Problem [duplicate]

When I type ContourPlot[x == Sin[6*Pi*y], {x, -1, 1}, {y, -2, 2}] I get this Now I'm not a particularly gifted mathematician, but I have a feeling this just ...
0
votes
2answers
266 views

Plotting energy dispersion on a hexagonal Brillouin zone

I'm trying to plot the energy dispersion of a graphene similar material. I've used the Tight Binding Function Approximation considering first neighbours and no overlaping. I have this 2 expressions of ...
5
votes
5answers
304 views

Plot all curves in a table with a single color

I want all of my solutions in a table to be the same color. My attempt: ...
3
votes
1answer
228 views

PlotLegends is obsolete in v10?

I am using Mathematica 10.0.2.0 on a Mac OS X (Yosemite v. 10.10.1, 64bit). After I call: Needs["PlotLegends`"] I get the info: General::obspkg: PlotLegends` ...
0
votes
0answers
67 views

ListDensityPlot seems to break down for large arrays

(Using Mathematica 10) When using ListDensityPlot to plot 40000 + data points, the produced plot seems to be blurred/incorrect for points occurring later in the list. For instance, in the following ...
2
votes
1answer
66 views

Writing a procedure that invokes Manipulate[]

I would like to write a procedure with the signature: Foo[vars, params] which produces a Manipulate object. The procedure ...
2
votes
1answer
255 views

LayeredGraphPlot Vertex Spacing / Edge Length

For anyone who has used LayeredGraphPlot (Mma v9), you have probably seen that the vertex spacing is consistent throughout, that vertices have the same minimum unit ...
1
vote
3answers
124 views

Trouble using Manipulate and NDsolve for coupled ODE's

I'm aware that there are a few threads on the topic of solving coupled ODEs using NSolve and Manipulate. Based on those, I wrote the following code, solving my system of equations: ...
0
votes
0answers
25 views

AspectRatio on ListLinePlot only considering ticks and not values [duplicate]

I want to plot some data in a ListLinePlot where the x- and y-values differ by at least 2 orders of magnitude. In this plot the x- and y- axis should not be scaled differently. This is the result that ...
4
votes
1answer
109 views

3D plot of concave data set

I have the following data set ...
0
votes
1answer
61 views

Showing Legend in Wolfram Mathematica

The code below displays a histogram of the data and superimposes plots of five Weibull distributions for comparison. I have assigned colors to each Weibull curve in the distribution plots. How can I ...
0
votes
1answer
52 views

Show function doesn't plot two graphics [duplicate]

I've got a following code snippet: ...
1
vote
2answers
151 views

How do I remove the quotation marks from each element of a list containing dates that I have import from excel?

I've been stuck in this problem for 1 week. I just want to make a graph (Log-Return vs time (in year, month, day)). The code is: ...
0
votes
0answers
55 views

Plotting a function with multiple colors, without modifying ColorFunction

I have a function $f$ and a set $U$, and I would like to plot $f$ with a different color on and off $U$. At the moment, I am using a ColorFunction with an "if" ...
0
votes
0answers
73 views

Background of PlotMarkers

I use the StandardReport style sheet in my notebooks, but I would like to export plots without any backgrounds. Apparently, there isn't a global option to change the background on a plot, so I change ...
0
votes
1answer
53 views

why RegionPlot has cut in ring when changing plot range?

I am not sure I understand this one, thought to check with the experts. Please compare ...
-1
votes
1answer
74 views

My code of plotting a two-variable function is too slow [closed]

I have a code in which my complicated function to be plotted is F(x,p). I would like to graph it for 5 values of p equal to 10^7, 10^8, 10^9, 10^10 and 10^11 for x values between 0.01 and 0.99. All ...
7
votes
1answer
104 views

TransformedRegion, RegionPlot broken in 10.0.2.0?

After having had trouble applying TranslationTransform to a simple region like so ...
1
vote
1answer
117 views

No legends in parametric plot

plotting some descibing functions, I wondered why I don't get any legends in my plot. The describing functions (and options): ...
3
votes
1answer
147 views

Checkerboard background on plot (potentially using prolog)?

Currently I have a plot of a complicated function with gridlines turned on. Is there a way to shade a checkerboard pattern of alternating colors between adjacent grid cells? So far, I have tried ...