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

learn more… | top users | synonyms (6)

3
votes
2answers
106 views

How to align the output of MatrixPlot with the output of Plot

I am trying to figure out how to align different types of plots into one image. For example in the following code, it plots two lines on top of a MatrixPlot. I want ...
1
vote
1answer
565 views

Plot in a 2-dimensional simplex

I have a row vector as $P=(p_1,p_2,p_3)$ which should be obtained from the following constraints: $a_1p_1 + a_2p_2 + a_3p_3 = b_1p_1 + b_2p_2 + b_3p_3$ ($a_i$'s and $b_i$'s are known) $p_1 + p_2 + ...
5
votes
2answers
689 views

How to plot several functions without jumping? (multiple eigenvalues of a system as functions of 2 parameters)

I've been working on this research problem for months with some success by no global/proper solution to the problem. So I have square, Hermitian matrices of various sizes ($8,20,38$ dimensions) with ...
34
votes
6answers
2k views

How to plot ternary density plots?

How can I get a ternary density plot just like the plots from OriginLab? ContourPlot and DensityPlot seemingly can accept the ...
2
votes
2answers
881 views

2D ListPlot with separate color function

Suppose a data array of the form {{x1,y1,z1},{x2,y2,z2}...}, is it possible to use ListPlot where x,y specify the point position ...
1
vote
3answers
201 views

Plot a table of ranges

I have table with values like: t = {1.234 <= a <= 2.345, 3.42 <= a <= 5.67, ...} and I want to plot this table, the ...
0
votes
1answer
180 views

How to build an interface that plots an equation given as text by a user?

I would like to create a window where a student may enter an equation and, by clicking on a button, the function gets plotted. In the original Spanish: Quiero realizar una ventana en la cual el ...
2
votes
1answer
171 views

Filling between quantile ranges

Following code plots Quantiles for a GBM process. ...
2
votes
2answers
162 views

How to exclude numbers in a series and still plot the graph? [duplicate]

I want to plot this: $\displaystyle\sum_{n=-{10}\atop n\ne \pm 1}^{10} \dfrac {4i(-1)^{n}n}{(n^2 - 1)^2}e^{inx}$ but have no idea how I can exclude the cases for when $ n = \pm 1 $. I don't wish to ...
0
votes
3answers
230 views

Mathematica plotting help (plotting a complex fourier series) [duplicate]

How would I plot the following in Mathematica? $ \displaystyle\sum_{n=2}^{10} \bigg(\dfrac {4ine^{inx}(-1)^n}{(n^2 - 1)^2} - \dfrac{4in e^{-inx}(-1)^n}{(n^2 - 1)^2} \bigg) $ Thanks.
1
vote
1answer
238 views

Looking for better way of plotting families of functions

I'm trying to plot this: ...
5
votes
1answer
190 views

Problem to plot GDP data coming from Wolfram Alpha

I'm working with economic data and realized that I could extract it directly from WolframAlpha using _Mathematica. So I did it. I extracted the GDP data of the country I'm studying. ...
2
votes
1answer
218 views

ListPlot - plotting values with different range

I have three tables: L, S and U. In first table I have values from range (0,1), in second ...
2
votes
2answers
345 views

One fill color for a curve when it is above the x-axis and another when it is below [duplicate]

I want to use a different fill for a plot when the curve goes below the x-axis than when it's above that. I tried: ...
4
votes
1answer
219 views

DensityHistogram label/display values in Mathematica 8

I'm trying to make a DensityHistogram in Mathematica 8 that overlays the histogram values for each location. What I want is for the value of each square to be ...
0
votes
1answer
98 views

Interactive plot with checklist

I'd need to write an interactive plot. I have some function I defined and some point lists I get from external data file. I'd need to see those data along with my functions, and I know how to do that. ...
3
votes
1answer
517 views

DateListPlot show all the dates in ticks

The code below generates the plot above, ...
17
votes
3answers
1k views

Plot discontinuous function with black and white disks marking discontinuities

Let's say I'd like to plot Sign[x + 0.5]: Plot[Sign[x + 0.5], {x, -1, 1}] Mathematica will give this: This plot does ...
3
votes
2answers
333 views

Different MeshStyle for different functions

By using Plot command I want to get one curve in form if circles and other like a solid line. ...
8
votes
1answer
324 views

Add lines to 3D Plot

How can I add lines that demarcate the different regions of the following 3D plot: Plot3D[1/(1 + E^(-a - c)), {a, -8, 8}, {c, -8, 8}] To give you an idea of what ...
13
votes
4answers
672 views

Is it Possible to change dashes into circles with Plot command?

Is it possible to change the Dashed Style of a curve into circles with Plot command ? ...
2
votes
1answer
3k views

Simple way to plot a complex valued function of one real variable

How can I plot a complex valued function of one real variable, $f(t)$, as $$x=-\Re f(t),\ z=\Im\ f(t),\ y=t \space?$$ My aim is a 3-dimensional path, treating the complex valued function as if it ...
0
votes
1answer
131 views

Why is my plot so small?

This code ...
2
votes
1answer
137 views
1
vote
0answers
201 views

ListDensityPlot: How to only retain regions with data without using interpolation?

I'm working with ListDensityPlot on a set of triples, $\{\{x_1, y_1, z_1\}, \dots\}$. The data is on a semi-regular grid and looks just as it should through most of ...
4
votes
5answers
467 views

How to plot a 2D region when there are 3 free parameters?

How could I obtain the region of payments, with the parameters a,b,c,d between 0 and 1 and the sum of all equals 1? After the comment/recommendation of belisarius... I edit the original question ...
9
votes
4answers
2k views

How to plot and find the volume of a solid?

How to plot and find the volume of the solid enclosed between the paraboloid z=5(x^2+y^2) and z=6-7x^2-y^2 And the answer of ...
7
votes
3answers
140 views

Disable rounding up of PolarAxesOrigin

How to disable rounding up the radius which is used to calculate the origin of the polar axes with the option PolarAxesOrigin? Example: ...
0
votes
1answer
163 views

How to use ParametricPlot Wih Conditions (or similar)

I´m analizyng the game "Battle of the Buddies" similar to "Prisioner´s Dilenma" All works fine, BUT... I want to draw in red the point whose coordinates are less than the coords of a strategy. ...
4
votes
1answer
437 views

Edit Plot/Graphics after it's been drawn. [duplicate]

Sometimes I run into a situation when there are graphics objects (mostly plots) that take a while to draw. Good practice would suggest you do all your evaluation outside ...
3
votes
2answers
709 views

Plot3d: How to color a surface according to the slope of the surface?

Here is my approach, for an example surface function: surface[x_, y_] := Sin[x y]; The normal vector of a point in the surface is computed as: ...
0
votes
1answer
249 views

How to draw the plot of a function in the complex plane? [duplicate]

I'm new to Mathematica, and I was wondering how to plot $x^n$ in the complex plane. Is there a dedicated function for this purpose?
0
votes
0answers
45 views

Mathematica how to plot objects with labels in 3D plot [duplicate]

The following code plots 3 cuboids, each with a label at the lower left vertex. The label is meant to be part of the cuboid object. Yet, since Text[] is used to ...
4
votes
1answer
310 views

Plot a cone in spherical co-ordinates

As we all know in spherical coordinates a function phi = π/3 gives us a cone. The cone makes an angle of π/3 with the imagined ...
11
votes
3answers
1k views

How to make Mathematica graphs in Microsoft Word independent from Mathematica?

When I open a .docx file containing Mathematica graphs on a computer without Mathematica software installed, the graphs look corrupted. For example, ...
0
votes
1answer
194 views

how to deal with so many digits in plot ticks [duplicate]

the data is as follows ...
35
votes
6answers
2k views

How to plot contours in the faces of a cube

I'm trying to plot contours of a function f[x,y,z] on the faces of a cube as the example below, which represents the domain of this function. Is there a way to do ...
4
votes
3answers
510 views

How can I draw a hyperboloid given its generatrix?

I want to see how a hyperboloid of revolution is generated by its generatrix, i.e. by rotating one (say the one passing point $(1,0,0)$ and $(0,1,1)$) of the skew lines around another (say the z ...
3
votes
2answers
406 views

random geometric graph generation problem

I'm new to Mathematica. I'm trying to generate a random geometric graph in which to have a secure link between any two arbitrary nodes they should share a common key in their key rings (have assigned ...
11
votes
1answer
281 views

Disconnected Frame/Axes in Plots

Is it possible to have "Tufte" style figure axes? That is so that the axes do not need to connect or span the entire data range? For an example of what I mean from the R's default histogram style: ...
5
votes
2answers
261 views

Extracting data values from a plot

I found that the fact is very useful that a plot sometimes contains all the original data needed to reconstruct that plot. This is very helpful for me because sometimes I need to retrieve and analysis ...
0
votes
0answers
32 views

Plotting bug? or am I missing something? [duplicate]

I would like to plot some functions in a family such as the following set of functions: Table[(n/(1 - 2 x))^2, {n, 1, 29}] And this works wonderfully: ...
1
vote
1answer
310 views

Vertex labels versus vertex names in VertexRenderingFunction

The VertexRenderingFunction seems to only use names, not labels. For example: ...
2
votes
2answers
194 views

Plotting double inequality only for integer values

RegionPlot is plotting for all values. And using ListPlot I can only evaluate one inequality. How can I plot this type of ...
4
votes
1answer
1k views

Combining Two Manipulated Plots Dependent on Same Variables

I need to combine two plots on the same graph to highlight the intersection of the two while being able to manipulate various parameters that are common to both functions. I need to have the slider ...
4
votes
2answers
206 views

GraphPlot with black edges no rendering function

Is there any way to make the edges of a GraphPlot black without tediously writing out a long "EdgeRenderingFunction"? I guess you could ask the same kind of question about vertex labeling. For ...
1
vote
3answers
142 views

Discrete inequality plotting

I have an equation like this: $${20 \choose k}\cdot \sum_{i=0}^k {k \choose i}\cdot i \leq 1+f$$. I want to plot this inequality as the dependency between k and ...
4
votes
2answers
216 views

How to highlight overlapping regions in RegionPlot according to the overlapping times?

I want to plot the overlapping regions of several inequalities. For example, ...
3
votes
1answer
826 views

Plotting two functions against each other

I have two functions which are functions of t. Let's just say x1[t] and x2[t]. I want to ...
4
votes
3answers
196 views

PlotStyle with Table

I want to create a plot style with a table and manipulate the variables in the plot style. ...