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

learn more… | top users | synonyms (4)

16
votes
4answers
1k views

Printing exported PDF graphics fails (version 8)

When I export even simple graphics, say, a DateListPlot to PDF under Windows, it refuses to print on any of the printers at work. Acrobat (Reader X) throws three ...
8
votes
5answers
554 views

can the color in MeshStyle be specified by a ColorFunction, such as “SunsetColors” for example. If so, what is the correct syntax?

This is an example given in Help: Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}, MeshStyle -> Gray] Could this be changed to something like ...
28
votes
3answers
3k views

How does one set a logarithmic scale in a ContourPlot?

How does one set a logarithmic scale for both x and y axes in ContourPlot in Mathematica?
9
votes
5answers
540 views

Create filling between two trig functions

Working with trig functions, period, amplitude, etc. I found a worksheet at a calculus website, with some nice questions related to interpreting trig functions, at least, they provide some "fun" ...
2
votes
1answer
256 views

How to insert a plot into another overlay plot

I want to insert a plot into another overlay plot. Here is my code: ...
14
votes
3answers
561 views

Gridlines of a framed plot with a background cannot be white?

Looking at this question, I am reminded of a problem that I was never able to solve with obtaining a particular plot format. The issue is that GridLines sit behind ...
13
votes
3answers
708 views

Is it possible to position ticklabels on the negative y axis on its right side?

Is it possible to position ticklabels on negative $y$ axis on its right side? Ticklabels on positive $y$ axis should remain as usual:
12
votes
1answer
499 views

Styling individual bars in a BarChart with grouped data

Consider the following: ...
11
votes
2answers
575 views

About number truncation of ticks display in ListPlot

In my problem, I need to plot a figure in a relatively small region of the $x$ axis, e.g., ...
10
votes
2answers
583 views

Adding custom GridLines to the “automatic” ones

I need to add custom (vertical) grid lines to a plot (to a DateListPlot, to be precise). I know there is the option of ...
9
votes
4answers
3k views

Filling between boundaries

I would like to visualize what it graphically means to integrate between two boundary values. Therefor I'd like to make a Filling between these two values. Is there a way to get this done?
4
votes
2answers
255 views

How and when to use Evaluate?

A month ago, I used Mathematica to solve my experiment of the Test Technology of Mechanics Engineering. The exeriment is mainly about the Fourier Transform and verify the validity of the theory of ...
4
votes
4answers
3k views

Mapping multiple parameters of a function to specific values

I am a little bit confused by the documentation for Apply (@@). I want to define a list of parameters, for instance: ...
3
votes
2answers
1k views

Plotting the results of iterating a function

This is what I am stuck on f[a_][x_] := x^2 + a; w[a_] := Take[NestList[f[-1.8], 0, 1000], 100] Now I want to evaluate this for different values of the constant ...
19
votes
2answers
261 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 ...
12
votes
4answers
7k views

How can I plot the direction field for a differential equation?

I'd like to plot the graph of the direction field for a differential equation, to get a feel for it. I'm a novice, right now, when it comes to plotting in Mathematica, so I'm hoping that someone can ...
8
votes
4answers
374 views

Plotting the components of a function that returns a list in different colors without redundant evaluations of the function

I have a function f which takes a number as input, and returns a list of numbers (the length of the list is constant). f is hard ...
6
votes
3answers
1k views

Spreading colors in ListDensityPlot

I want to create a two-dimensional plot using data from an external file. This file contains several triplets of numbers. The first two columns indicate the x and y position, while the third one works ...
5
votes
1answer
193 views

Why does the order of arguments in Show influence the result?

I am wondering why there is a difference in the results from evaluating the two expressions, which differ only in the order of the arguments given to Show. When I ...
5
votes
3answers
3k views

How can I transpose x and y axis on a Plot?

This question has appeared in various forms online, but I have not yet seen a complete answer, so I am posting it here. More specifically, suppose I have a function ...
4
votes
6answers
339 views

ParametricPlot with plot markers

I have a parametric plot, and would like to fit a line to it with "■" PlotMarkers on it, but am unable to do so. ...
4
votes
4answers
712 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.
16
votes
2answers
664 views

Plot Option Precedence while combining Plots with `Show[]`

I like to build sophisticated plots by combining simpler ones with Show[]. Typically this involves setting non-default Plot-Options with the different ...
11
votes
1answer
736 views

How can I make hatching filling of plot

How can I make hatching filling of plot Like this: I use another one plot with shifting to make filled area above: ...
10
votes
4answers
754 views

Coloring Points in a Plot, based on their position in the list

Before I describe the question, I'd like to say that I've seen the excellent answers posted here but have not managed to get them to work for my own data. I have a list of values that I would like to ...
9
votes
2answers
5k views

Placing x-axes label below rather than at end of axes

By default Mathematica places the x-axis labels at the end of the axes like Googling has suggested a way around this is to use Frame- for example ...
8
votes
3answers
666 views

Pass list of options to Plot3D

Consider the example plotOptions = {PlotPoints -> 10, MaxRecursion -> 2} Plot3D[x y , {x, 0, 10}, {y, 0, 10}, plotOptions] Why does this causes the error: ...
8
votes
3answers
4k views

Plotting Partial Sums of Fourier Series

I'd like to plot some partial sums for a Fourier Series problem, but I am not sure if the output I am getting is correct. I want to be able to plot the partial sums and the function on the same graph. ...
7
votes
1answer
483 views

Managing Exclusions in Plot[]

When I do: ...
7
votes
3answers
569 views

Can I limit PlotRange for 1 function in a Plot?

I have a 2D Plot of 3 functions Plot[ { f1[x], f2[x], f3[x] }, { x, 8, 18 } ] where I want f3[x] only plotted for the range [10, 18] instead of [8, 18]. Is that ...
6
votes
2answers
746 views

How to reverse the direction of the y axes

I have a similar question to this one. Unfortunately, the answers there didn't help me. I would like to plot a simple function with the normal Plot function. ...
6
votes
3answers
426 views

Opacity and overlapping multiple polygons

Let's say I have 100 polygons that are all different but most of them overlap. All I want to do is to draw/plot them in one single graphic with linearly adding gray values; i.e., a point with ...
6
votes
3answers
623 views

Can I use a custom (Frame)Ticks specification to define the PlotRange?

The documentation for Ticks and FrameTicks shows how one can define a function for custom ticks or frame ticks, for example: ...
4
votes
5answers
1k views

How to plot Fit functions?

If I do something like this f[x_]:=x^2 Plot[f[x],{x,1,10}] Mathematica plots the function $f(x)=x^2$, as expected. However, ...
3
votes
1answer
1k views

How to align rotated tick labels?

How can I align tick labels so the tick label text ends centered under the data point? Of Course it works fine with a rotation of 90 Degrees, but not with 45 or similar angles. I see an example of ...
2
votes
4answers
5k views

Calling Correct Function for Plotting DiracDelta

I am wondering what is the correct function in Mathematica to plot the true impulse function, better known as the DiracDelta[] function. When using this inside of a ...
9
votes
3answers
1k views

Labeling a bar chart, changing how rotated labels are centered

I'm trying to label a bar chart with rotated labels see this simple example: ...
7
votes
2answers
839 views

How can I fill under a function in a plot just to right of a specified vertical line?

How do I plot a normal curve with filling under the curve and to the right of a vertical line. I would prefer that the vertical line starts at the x-axis and stops at the plotted curve. Basically ...
7
votes
1answer
265 views

Changing the plot variable inside Plot [duplicate]

Possible Duplicate: Difference in Plot when using Evaluate vs when not using Evaluate Assume one has vector of functions (e.g., vec={x,x^2}). The ...
6
votes
1answer
196 views
5
votes
1answer
571 views

How to zoom and pan a ListLinePlot?

I'm using ListLinePlot inside a Manipulate function to display some data. I've seen that Mathematica allows zooming and panning ...
4
votes
3answers
326 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
1answer
311 views

How can I have an axis label automatically positioned below the X-axis?

I'm attempting to generate some histograms, and I'd like to automatically label the X-axis. However, Histogram[. . ., AxesLabel -> {"X", "Y"}] places the "X" ...
3
votes
3answers
5k views

How to plot an ellipse?

I'm new to Mathematica, and I'm finding it difficult to plot an ellipse. I tried using Plot[(x/5)^2 + (y/3)^2 == 1, {x, -5, 5}, {y, -3, 3}] but I'm getting ...
3
votes
2answers
880 views

Combining manipulated plots

Let's say I have two manipulated plots: Manipulate[Plot[Sin[a x], {x, 0, Pi}], {a, 0, 10}] Manipulate[Plot[Cos[b x], {x, 0, Pi}], {b, 0, 10}] How can I create a ...
3
votes
2answers
287 views

Rules governing Plot line generation

I was looking at the Documentation Center for Round, Ceiling and Floor when I noticed that ...
2
votes
2answers
265 views

Add Point to Plot3D

I'd like to simply add a nice thick point in $(0,0,0)$ to Plot3D[(y^2/x), {x, -3, 3}, {y, -3, 3}]. The solutions I came across to add anything to ...
2
votes
2answers
282 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 ...
2
votes
2answers
473 views

How can I plot implicit equations?

If you enter the following into Wolfram | Alpha, you get nice graphs: graph 4 x^4 + y^2 = 2 How do you do this in Mathmatica? I realize that these are not ...
2
votes
4answers
1k 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 ...