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

learn more… | top users | synonyms (6)

6
votes
4answers
228 views

Draw graph wherein vertices are ArrayPlots

I need to place ArrayPlots in the vertices of graph. i.e. in graph Graph[{1->2, 2->3, 3->1}] I have to replace vertex 1 with ArrayPlots[{{0,0,1}}] and ...
3
votes
1answer
469 views

Plotting velocity vectors for pressure driven pipe flow

So I find the velocity profile for Pressure driven pipe flow and it looks like: $$u = \frac{h^2}{2 \mu} \frac{\mathrm{d}P}{\mathrm{d}x}\left[1 - \left(\frac{y}{h}\right)^2\right]$$ Here, a fluid ...
4
votes
3answers
207 views

Border on part of ArrayPlot

I need to outline with border the group of cells in ArrayPlot. More precisely in my case I would like to outline all blocks of two black squares in the following line. ...
0
votes
1answer
399 views

How can I combine several 2D-plots to one big 3D plot?

So I've been able to make a list given by list = Table[{xValues, f[xValues, t (*fixed*)]}, {xValues, xmin, xmax}] For example: ...
0
votes
0answers
26 views
5
votes
1answer
216 views

How can I stack plots so that they are aligned nicely? [duplicate]

Suppose that I have two plots (e.g., Plot, ListPlot, etc) that cover two regions of space. I would like to display them ...
10
votes
3answers
596 views

How to use legends from PlotLegends in LevelScheme?

I've been attempting to find efficient ways to generate graphics with legends for export, and have been working with both LevelScheme and the new (to v9) ...
1
vote
2answers
480 views

Placing text inside a region with RegionPlot

I am plotting many regions with RegionPlot. I would like to label each region as I plot it so that I get something that looks like figure made with the following code: ...
4
votes
3answers
454 views

Plotting the convolution of the same probability density function with itself

I would like to compute the integral $$q_n(x)=\int_{B}^A q_{n-1} (\omega)f(x-\omega)\mathrm{d} \omega,\quad q_1=f,\quad n\geq 1.$$ for a given density function $f$. Basically it is the convolution ...
4
votes
2answers
1k views

How to plot the 2-D graph of $|x|+|x+y|=1$?

Problem Description: Today,I am countered with a integral problem that I need visualize a 2D graph of the equation $|x|+|x+y|=1$ I plots it step-by-step by hand: When $x \geq 0, x+|x+y|=1$ ...
2
votes
4answers
235 views

Plot counting function semi primes

I am trying to generate a plottable semi-prime counting function. Have tried: ...
1
vote
0answers
616 views

Problem enabling PlotLegends in Mathematica 8.0

I am trying to make a legend for a simple plot in Mathematica 8, but does not seem to recognise the command PlotLegends. I declared beforehand ...
21
votes
2answers
325 views

Plotting a defined function gives different results from plotting the function directly

Consider the following piece of code: function[t_]:=Exp[-9 t^2]; LogLogPlot[{function[t],Exp[-9 t^2]},{t,.01,100}] I expect the two plots to exactly overlap each ...
1
vote
1answer
715 views

Want more vibrant colors in plots

Is it possible to create plots that have vibrant colors like those I create in Python? For instance, take this thread function returning 0 where I used rainbow and here is the temperature gradient: ...
0
votes
1answer
131 views

Curve Fitting Errors

I am trying to fit a part of a dataset to the function $$ae^{-b\sqrt{x-c}}$$. My friend was using GNUPlot to this and got reasonably good results. However when I try to this with Mathematica : ...
3
votes
2answers
192 views

CustomTicks - Changing NumberPoint -> “,”

How can I change the number point from . to , in CustomTicks ? The Mathematica built-in ...
-1
votes
1answer
132 views

Plotting a function that uses the solutions to a system of differential equations

I am trying to draw a plot by using the solution of differential equations ...
0
votes
1answer
916 views

Ellipsoid in spherical cordinates

I am trying to plot in spherical coordinates the ellipsoid defined as $$(x/3a)^2+(y/2a)^2+(z/4c)^2=1$$ This is my code: ...
1
vote
1answer
90 views

Issues with creating functions [duplicate]

Sometimes when I try to create a function inside a function, Mathematica gives me a hard time. I usually just have to play around with the syntax until it gets something it "likes" but I really have ...
8
votes
6answers
2k views

Filling a curve to a vertical axis

I am preparing a figure for an article, and I would like very much to be able to fill a curve, but not under it, but to the vertical axis, i.e. to the left. Due to the meaning of the data I present, I ...
13
votes
7answers
1k views

Finding the best way to visualize rather complicated data

I have the following data ...
1
vote
2answers
177 views
5
votes
3answers
447 views

Plot 3D image of function

I'm (very!) new to Mathematica, and trying to use it plot a set in $\mathbb{R}^3$. In particular, I want to plot the set $$ \big\{ (x,y,z) : (x,y,z) = \frac{1}{u^2+v^2+w^2}(vw,uw,uv) \text{ for some ...
7
votes
4answers
3k views

How can I manipulate the number of decimal places in the frame ticks?

Is there any simple way to increase or decrease the decimal places in the frame ticks. I want to make the y axis ticks of the first two and the second two graphs look similar.
2
votes
0answers
52 views

Why does AbsoluteOptions give the wrong answer for ListPlot? [duplicate]

I'm trying to get the PlotRange from a ListPlot graphic: ...
5
votes
1answer
265 views

How to speed up multi-curve plotting?

The following example is a very simplified version of the problem I'm working with, though I hope it still captures the essentials. First, the definitions: ...
8
votes
2answers
301 views

Labeling a three-dimensional plot

As the title says, I want to add some text in a three-dimensional plot, thus labeling specific parts of it. Here is the corresponding Mathematica code ...
3
votes
1answer
163 views

Any way to speed up evaluation in an Animate?

I have a self-defined function which is fairly complicated and gives the analytical form. The result contains two independent variables. I use Animate to plot the ...
0
votes
1answer
212 views

Plot complex path (essentially a 2D path) expressed in one real parameter

Consider a complex path expressed in one real parameter, such as $$f(\alpha)=\frac{1}{e^{i \alpha} + 1},$$ which is a Möbius transformation of the unit circle. I know I can expand it all out and use ...
0
votes
1answer
80 views

Can I specify the style of plot for some element in discrete plot?

I am using discrete plot to plot a 1D array. But I want to plot some points specified by a span in one style (for example, in red) and the rest points in other style (e.g. in blue).
2
votes
1answer
156 views

How to embed graphic-element-specific metadata within a Graphics object?

One of the most crucial requirements for rich, interactive scientific graphics is being able to "annotate" individual graphic elements (e.g. the data points of a scatterplot, the individual curves in ...
4
votes
1answer
200 views

How to Use ProbabilityScalePlot with Censored Data?

I am trying to reproduce a ProbabilityScalePlot of censored data shown here (see Sample Analysis Plot). Here is my Mathematica code. First I deal with the uncensored case. ...
2
votes
4answers
4k views

Filling Between Curves [duplicate]

I want to fill in the region between the curves. So far I have this: Plot[{x + 7, 9 - x^2}, {x, 0, 1.5}, Filling -> {1 -> {2}}] But I want something ...
4
votes
2answers
164 views

Lost and found Tooltip in ListPlots

I came upon a strange Tooltip behavior in ListPlot and ListLogPlot. Consider the following ...
2
votes
3answers
248 views

FrameLabel and OverTilde

What is the problem with this expression inside ListPrint? OverTilde generates here a mess: ...
3
votes
1answer
240 views
5
votes
1answer
682 views

How to scale Histogram counts with the value of bin center?

I am analyzing some variates from a steeply falling power-law distribution (approximately with a power index -4) using Histogram[data, Automatic, "PDF"] While ...
4
votes
3answers
218 views

Variable partitioning of the data in the form of “list of lists”

I am looking for a way for variable partitioning of the data in the form of a "list of lists" for interpolating the imported data from excel. The data looks like: ...
7
votes
1answer
686 views

Getting clearer StreamPlot output

When I do a StreamPlotof a rather complicated pair of differential equations, it loses some details. For example: ...
25
votes
5answers
652 views

Compiling ColorFunction for faster complex phase-amplitude plots

I have gotten into the habit of plotting complex-valued functions on a plane using a color-function along the lines of ...
3
votes
1answer
530 views

Cartesian product of sets

I have two types of sets, one of them is a list of points of the form $\{t_{k}\}$ and the other one is an interval of the form $[a,b]$. And my custom set consists of these type of sets and I need to ...
0
votes
0answers
39 views

Obtain the coordinates of a point by clicking on it [duplicate]

Is it possible to show the coordinates of a point in a plot by clicking on it ? For example you click on one point on the plot below and you get the point's coordinates.
10
votes
2answers
367 views

Filling Fill incomplete in ListLinePlot

...
2
votes
1answer
208 views

Fraction Alignment in Plot Export to JPG [duplicate]

I've produced some plots that have fractional tick labels on the horizontal axis and they look fine. ...
0
votes
0answers
37 views

Custom FrameTicks not working [duplicate]

I would like to have a custom ticks on x-axis on my ListPlot, but nothing is showing, what am I doing wrong? ...
3
votes
2answers
129 views

Creating a trigger to update a previous ListPlot output with new data

Imagine I'm running a loop that's manipulating and changing elements in an array. Is it possible for me to create a ListPlot output in my notebook that updates on ...
4
votes
1answer
214 views

How to change the aspect ratio with drawing tool?

I'm drawing an image in editing an slide show with the drawing tools. But the aspect ratio of the created drawing seems fixed and not changeable with mouse dragging the border and corner as in other ...
6
votes
2answers
3k views

Need 4D plot (3D + color for function) [duplicate]

I have a function f(x,y,z) of three variables and some constants: ...
1
vote
1answer
617 views

Custom ticks failing with Frame

I know I can manipulate ticks: ...
2
votes
1answer
498 views