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

learn more… | top users | synonyms (6)

1
vote
0answers
49 views

Displaying a matrix as an array of solid rectangular blocks [duplicate]

I would like to plot an array of numbers as a surface, with each number the height of a square, and with the squares connected to adjacent squares with vertical rectangles, up or down as appropriate. ...
3
votes
3answers
228 views

Plotting a plane using intercepts

I have a plane 2x + 5y + z = 10. I have determined that its intercepts are: x = 5, y = 2, z = 10 I need to use ...
2
votes
2answers
200 views

Speed up ContourPlot

I created the following code, but the contours are drawn slowly with the movement of the slider, could you advise me how I should optimize the code? ...
1
vote
1answer
129 views

Country density plot of lines (highways)

I love solution from question (histogram as well as distrubution) http://mathematica.stackexchange.com/questions/31948/show-density-plot-on-us-map#=. But both cases are a bit more difficult in my ...
2
votes
1answer
214 views

thicker axes in 3d plot

I am new to Mathematica, and am not able to figure out how to make the axes in a ListPlot3D plot thicker. For some reason assigning a larger value to FontSize doesn't do anything. Would appreciate any ...
0
votes
1answer
55 views

ListContourPlot3D won't plot

According to the MMA 9 help: ListContourPlot3D accepts input as {{x1,y1,z1,f1},..........} and at position ...
1
vote
1answer
67 views

Different distance in .jpg plot and .eps

I noticed that when I run my code to draw a plot: ...
4
votes
2answers
213 views

Plotting bug in Mathematica 9.0

I want to plot the transition dipole moment vectors on their respective position. For example one transition dipole moment have a position vector like R now at this ...
3
votes
1answer
304 views

Pie/doughnut chart smarter labeling

There are numerous options in Marthematica for pie chart labels positioning: ...
0
votes
0answers
114 views

Distance between ticks and axes

I draw a plot which looks like below Is any way to increase the distance between ticks and axes? I mean, from my point of view, the ticks below the x ...
1
vote
0answers
61 views

Sizing elements correctly in a DistributionChart with custom ChartElementFunction

This is a follow-up question to Histogram scale error when using DistributionChart; Weird output of DistributionChart is also related. I'd like to make a DistributionChart where the elements are ...
6
votes
2answers
129 views

PolarPlot with Dashed and PlotRange freezes for simple function

When I plot PolarPlot[1/(1+Cos[6-t]), {t,0,2\[Pi]}, PlotRange->{{-4,4},{-4,4}}, PlotStyle->Dashed] everything works normally, but when I change the ...
2
votes
1answer
271 views

Place legend without border above the plot

I use Mathematica 7.0 and as far as I know, there is not method PlotLegends, only PlotLegend. I want to set my legend - without background, shadow and frame - above my plot, as in the example belowe: ...
2
votes
1answer
150 views

Plot: How set markers in plot in front of axes

I draw a plot using ListPlot. But I noticed that PlotMarkers are 'covered' by the axes; see example below: I was trying to ...
2
votes
2answers
90 views

Parabola plotting tangential to x = const, and y= const

ContourPlot[ pm Sqrt[x - a] + pm Sqrt[y - b] == Sqrt[c], {x, 0, 2 a}, {y, 0,2 b}] plots a parabola, but only a part between points of tangency (a, 0) and (0, ...
4
votes
1answer
138 views

Thickness definition for ParametricPlot3D

How is the thickness defined in ParametricPlot3D? For 2D plots, the thickness "is given as a fraction of the horizontal plot range," but how does that work in 3D ...
3
votes
2answers
87 views

Simple plot control

Absolute newbie question: Plot[2x-1,{x,-4,4},GridLines->{Range[-4,4],Range[-8,8]}] works about as expected, except that (a) I would like the tick ...
1
vote
1answer
109 views

Plotting the results of NSolve as Horizontal Lines

Suppose I use NSolve to find the Real approximations to the intersections of two separate functions over some specified range: ...
4
votes
4answers
686 views

Visualizing Line Integrals

I have a plane curve $C$ described by parametric equations $x(t)$ and $y(t)$ and a function $f: \mathbb{R}^2 \rightarrow \mathbb{R}$. The line integral of $f$ along $C$ is the area of the "fence" ...
0
votes
1answer
150 views

List Density Plot

What are the axis label for a list density plot? I have it set up to create the plot for 2 columns from a data set I got from an experiment, I'm just unsure of what each axis is supposed to be.
3
votes
2answers
158 views

Image Size using {w,h}

Mathematica help file says: "With ImageSize->{w,h} an object will always be drawn in a $w\times h$ region, and will be sized to fit in the region. " However: Doesn't look like "and will be sized ...
0
votes
1answer
100 views

Plot Legends when first argument was generated by Table[]

I can get a plot to generate legends for different functions when these functions are put into a hand-coded list. However, when I generate the list of functions using Table[] only one legend is ...
15
votes
4answers
630 views

Exclude data from a list

Let's create some random sample data data = Table[{RandomReal[{-10, 10}], RandomReal[{-10, 10}]}, {i, 1, 300}]; Then we plot them using ...
2
votes
1answer
296 views

Draw a region bound by a sphere and a cylinder

Here is my code for drawing the region bounded by the sphere $x^2+y^2+z^2=1$ and the cylinder $x^2+y^2=x$. ...
1
vote
1answer
103 views

How to plot $\frac{x^{-2/3} e^ { \left(-\frac{x^{2/3}}{2}\right)}}{\sqrt{2 \pi 9}}$ for negative real numbers?

While trying to $\text{Plot}\left[\frac{x^{-2/3} e^ { \left(-\frac{x^{2/3}}{2}\right)}}{\sqrt{2 \pi 9}},\{x,-5,5\}\right]$ in mathematica, I was initially wondered (though mathematica's silence was ...
2
votes
1answer
52 views

Manipulate Plot with Controller being difference of two variables

I'm not sure if this is possible at all or whether manipulate is the best option to plot this, but currently I'm using the following code to plot Function Func vs. t values for different x values. ...
2
votes
0answers
43 views

ListPlot with conditions Part II

In a previous post Part I @Julian S proposed an interesting method in order to segment the data. A copy of the data file can be found here: data. I know that I should provide a minimal working example ...
2
votes
2answers
278 views

ParametricPlot3D line not smooth

Multivariate parameters appear to present a jagged appearance of integrands (using default Runge-Kutta ODE integration intervals?) in ParametricPlot3D plotting on a single argument. Higher Mesh.. ...
0
votes
0answers
71 views

Can not understand the code to join points into line segments

I'm reading the CDF file from Making Formulas… for Everything in wolframalpha blog. It's hard for me to understand the In[17] code of function pointListToLines. I especially want to know what the use ...
3
votes
2answers
107 views

RegionFunction generalized to plot a different colour/style for the largest expression [duplicate]

I have several functions of two variables defined in some region, say functions[x_,y_]:={0,x-y,Sin[x^2-y]} I'd like a plot to show at a glance the regions where ...
2
votes
2answers
520 views

draw part of parabola using graphics

today I was doing my physics homework. one of the questions was draw velocity-time and position-time graphs from the acceleration-time graph. So for the first step I draw acceleration-time using ...
3
votes
1answer
81 views

Graphs Plotting Discontinuous

I'm trying to plot a graph from the eigenvalues of a matrix I created. The graph shows with discontinuities in it and I was looking for some feedback. Here's the code: ...
1
vote
2answers
214 views

ParametricNDSolve and plotting problem

I have a problem with ParametricNDSolve: ...
3
votes
2answers
180 views

Adding walls to a region plot

I've done this code: Plot3D[x + y + 1, {x, 0, 1}, {y, 0, 1}, RegionFunction -> Function[{x, y, z}, 0 <= y <= Sqrt[x]]] Producing this image: In ...
4
votes
2answers
162 views

How can I use legend in ContourPlot3D and add arrowheads for axis?

I am using ContourPlot3D to show two surfaces. This is my code. Now I want to use Legend to distinguish the two surfaces, and add arrowhead for the three axis. ...
0
votes
1answer
44 views

Plot command uses same colors when applying pattern on list [duplicate]

When I do Plot[{fun1,fun2} ./ val1->1,{t,0,10}] then both plots are in the same color! If I use instead ...
1
vote
0answers
67 views

Would you give me some advice on Elliott's equation?

I'm trying to solve below equation on mathematica for plotting, but I'm a complete beginner. ...
10
votes
2answers
222 views

Glitch in Filling?

Bug introduced in 8.0 and persisting through 10.1 or later I ran into a problem while plotting and I was able to narrow it to this. Before I start "spelunking" I'd like to know if I am overlooking ...
1
vote
0answers
85 views

Symbolic and numeric calculations (and plots) simultanuosly

I use Mathematica to do a bunch of symbolic calculations (integrals, ...). This is good because I found that sometimes, if I plug in numeric values, Mathematica takes much longer. However, sometimes ...
6
votes
3answers
193 views

FontSize problematic when used in LabelStyle

Bug introduced in 9.0.0 and persisting through 10.0.2 or later Consider the following few examples, each producing a trivial graphic object: ...
3
votes
2answers
154 views

Plotting 3D arrows on a surface

I have a cone: ...
0
votes
0answers
75 views

Using Animate/ListPointPlot3D on more than one list

I have a couple orbits defined which have been mapped into one array as shown: ...
0
votes
1answer
92 views

Empty plot when calling the SphericalHarmonicY function in Plot or SphericalPlot3D [closed]

I'm getting an empty plot for the following code: SphericalPlot3D[ 2*Pi*Sin[theta]*SphericalHarmonicY[100, 50, theta, phi], {theta, 0, 2*Pi}, {phi, 0 , Pi}] ...
3
votes
1answer
115 views

Why does the replace all (/.) evaluate differently in plot

I'm plotting this function: Plot[(2 (l/2 π)^2 ((2 π f)/c)^2 /. {f -> (f 10^9), l -> .01, c -> 3 10^8}), {f, 17.5, 26.5}] but it does not plot ...
2
votes
1answer
78 views

Why doesn't Directive work with some settings (e.g. Arrowheads) for VectorStyle?

In Mathematica 10 on two different Windows machines, VectorPlot[{1, 1}, {x, -1, 1}, {y, -1, 1}, VectorStyle -> "Segment"] works just fine, but ...
1
vote
1answer
127 views

Why ContourPlot3D plot is in yxz system?

I was trying to explain to someone projection of points in space. I used ContourPlot3D and plotted the planes x=1, y=1 and z=1 to show that the point (1,1,1) is the point where these three planes ...
5
votes
2answers
142 views

Flipping y-tick labes or x-tick labels simply

As it is common to most of us, when we plot a figure, x label ticks are located above x-axis and y label ticks are located at the right of y-axis. Is there any simple way to alter this in ...
2
votes
1answer
87 views

Test whether point belongs to the region between contour lines in ListContourPlot

A simple question but, unfortunately, I could not find the answer. Suppose I have a ListContourPlot built from some data set, e.g., ...
0
votes
2answers
411 views

How to label a GraphicsGrid? [duplicate]

I am constructing a GraphicsGrid from a set of plots. Is there an easy way to add an overall label for the whole grid?
1
vote
1answer
102 views

Solve for values which produce negative real Eigenvalues?

Given an n x n matrix "A", with one or more unknown parameters, I'd like to show a plot of which values produce stability (negative Eigenvalues). For example, say you have a simple mass-spring-damper ...