Questions tagged [plotting]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
418 views

Why is LogLogPlot[] slower than Plot[]?

I notice that LogLogPlot runs quite bit more slowly than ordinary Plot. For example, consider the following two blocks of code ...
4 votes
1 answer
1k views

How do I use the ShowLegends function to produce a legend for my framed graphic?

I'm new to this site and new to Mathematica as you can see from my question. I'm also new to programming, btw. I'm trying to produce a legend for my plot which I've coded as follows: ...
17 votes
3 answers
5k views

Manipulating the axis on a ListLinePlot

I am trying to create a plot using ListLinePlot in which the x-axis is represented in a logarithmic scale, and is reversed (so larger values are on the right side). ...
12 votes
4 answers
2k views

Plotting a complex valued function over a circular region

I would like to apply some complex valued function to some region in the plane, say, a circle of radius $R$ centred at $k$. How can I do this?
3 votes
1 answer
394 views

Increasing the tickrate of an ErrorListLogPlot

I'm new to Mathematica and am trying to do an ErrorListLogPlot using the "ErrorBarLogPlots" package (from the Wolfram Library) for a graphical evaluation. ...
3 votes
3 answers
370 views

Plotting function lists [duplicate]

Possible Duplicate: Difference in Plot when using Evaluate vs when not using Evaluate Why do I have to put Evaluate[] here Why is ContourPlot not displaying this curve? Why is nothing (empty ...
0 votes
1 answer
4k views

How to add a grid on Plot, ListLinePlot and ListPlot? [duplicate]

Possible Duplicate: How to insert guide-lines in graphics without specifying range? When we're using ArrayPlot, it's possible to draw a grid by doing: ...
4 votes
1 answer
1k views

Draw tangent to point in ListLinePLot

I am using ListLinePlot to draw a number of points to a graph: ...
6 votes
2 answers
3k views

How to mark visible points on a Plot3D?

I'd like to illustrate a two-variable function discontinuous at zero. The function is $f(x,y)=xy/(x^2+y^2)$ unless $x=y=0$, in which case $f(0,0)=0$. I thought that I could draw a plot and then mark ...
0 votes
1 answer
3k views

How to plot the convolution of dirac delta series with a sine function [closed]

I am new to mathematica. I do the convolution of dirac delta :(DiracDelta(x-10)" with "sine(t),t=0-pi". How to plot the output ? Theoretically, the full wave should appear at the location of the ...
12 votes
1 answer
1k views

ArrayPlot with cells labeled by corresponding values

I would like to have ArrayPlot[] also present the value of each cell in it, similar to the LabelingFunction that is available in ...
10 votes
3 answers
2k 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 ...
4 votes
2 answers
3k views

Manipulate a Differential Equation result

I want to Manipulate the result of Differential Equation like : ...
6 votes
2 answers
1k views

Implicit Equality and RegionPlot

I have the following problem: I would like to do a RegionPlot like RegionPlot[F[x,z,y]<1,{x,0,1},{y,0,1}] The problem is that the variable z is an implicit (...
5 votes
1 answer
702 views

Creating multicolored meshed plots (connected scatter plots) using ListPlot

I would like to make colored scatter plots where the dots are connected by lines. I have tried the following, using Joined->True to connect the dots and ...
6 votes
2 answers
3k views

Plotting a path in a vector field

I am trying to make a visual representation of the curve $y=x^{2}$, with $x\in\left[0,1\right]$ in the vector field defined by $\vec{F}=\left[-y,x\right]$. However, as far as I can tell there does ...
25 votes
3 answers
19k views

How to express ticks in scientific form? [duplicate]

I want to express the ticks in scientific form. I tried two ways as following ...
3 votes
1 answer
2k views

GridLines at TickPositions

How can I force the GridLines to be at the positions of the Tick marks? A simple code, FrameTicks -> Automatic and ...
1 vote
1 answer
1k views

Is it possible to plot a function using Plot3D and a curve using ParametricPlot3D in the same picture?

I'd like to plot a graph of a function using e.g. Plot3D and then a line (in general a curve, in my case a straight line, tangent at some point to the surface just ...
2 votes
1 answer
2k views

Different Plot Filling for multiple curves

Warning: possibly dumb question :-( I have two functions I want to plot with the Filling option, like: ...
5 votes
3 answers
2k views

Reversing one axis in Plot3D

When I rotate my 3D plot to the desired viewpoint my X axis runs from 1 at the left to 0 at the right. How can I mirror my plot so that 0 will be at the left and 1 at the right? Extra credit: how ...
17 votes
3 answers
5k views

Drawing outside Plot area

I want to programmatically draw some objects outside the Plot area in my Plot's Epilog, like in this dummy: I found PlotRangeClipping and hoped that would be the ...
28 votes
2 answers
4k views

What is the fundamental difference between ArrayPlot and MatrixPlot?

Suppose I have a matrix called data. It seems that I can plot data using either ArrayPlot or ...
1 vote
1 answer
775 views

Omit part of a 2D plot [duplicate]

Possible Duplicate: Generating a broken or snipped axis in ListPlot I am interested in removing a part of my plot, after searching around I could not find any questions concerning this problem. ...
5 votes
3 answers
979 views

ContourPlot - plot contour lines for minimum of list of functions == 2nd minimum of list of functions

I have a list of (ten or so) functions of two variables (x and y, say). I would like to plot the boundaries on the x y plane where two functions have the same value - but only the two functions in the ...
5 votes
2 answers
505 views

Rectangle wave OK in calculations, wrong in Plot

I have a Piecewise function consisting of two rectangle waves with different duty cycles: ...
14 votes
4 answers
887 views

Adding Lines to Sparklines (plots w/o frames, axes, etc.)

I have been working with Sparklines, thanks to some code found here. Here is what I am using: ...
2 votes
1 answer
756 views

PlotRange problems

I have a Delay Differential Equation of the form: ...
3 votes
3 answers
690 views

Force VectorPlot3D to show One arrow

I am plotting a curl, and I only want VectorPlot3D to show one arrow, I have tried adjusting VectorPoints-> 1, but the plot show's no arrows at all. Is 2 the minimum VectorPoints I can have? If I ...
6 votes
2 answers
616 views

Variable Boundaries on ParametricPlot3D

Is there any way to plot correctly using the ParametricPlot3D command with one of variable's boundaries defined in function of the other ? In the example given ...
6 votes
2 answers
1k views

Sharp ListDensityPlot

I have some quantity varying with time (horizontal axis of the plot): it first oscillates then it has a jump (larger than the amplitude of the oscillations), then it continues oscillating. I have that ...
1 vote
4 answers
2k views

How to find pixel position in a graph , given two points?

I have a graph where on my Y axis , I have price and on X axis I have period/time. My range on Y axis is from 10 (lower limit) to 200 (upper limit), so to draw the point on graph I need the Y ...
12 votes
2 answers
10k views

Two x-axis with different units connected by function using CustomTicks

I am trying to make a plot of some photoluminescence data, where wavelength is on the x-axis, and intensity is on the y-axis. Also, I would like to have the graph boxed, with the upper x-axis having ...
8 votes
1 answer
2k views

CustomTicks and small ranges

UPDATE While the self-posted answer below (TickLabelStyle->TraditionalForm) works for most things, it also has the following effect: Integers are given periods ...
5 votes
5 answers
3k views

ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid

I have been having problems with exported plots cutting off a pixel or two of the text in the title of my plots. Let's assume we have some data (AR(1) noise with a high autoregressive parameter ...
2 votes
1 answer
1k views

Manipulating an arbitrary-precision ContourPlot

I have a function, say minimizeme[ω_][β_][ϵ_] = ϵ^2 ω-Log[2 (Cosh[2 β]+Cosh[2 β ϵ])]/(2 β); I want to make a high-precision dynamic ...
9 votes
3 answers
2k views

Is there an easy way to put time ticks on a parametric plot?

I have a parametric plot showing a path of an object in x and y (position), where each is a function of t (time), on which I would like to put a time tick, every second let's say. This would be to ...
7 votes
3 answers
5k views

How can I set the ratio of the axis to 1:1 when plotrange->1 or how can I scale a rectangle according to the axis

I have a ListPlot function ...
12 votes
3 answers
3k views

Proper way to handle free variables in manipulate/plot?

It took me a while today to figure out that Manipulate (used with Plot) requires that the variable I'm manipulating be an actual ...
7 votes
5 answers
8k 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
1 answer
495 views

Rough edges plotting a surface

I'm trying to use SphericalPlot3D to create some images of a surface but I get some rough edges on the surface around the boundary. However, after rotating the ...
13 votes
1 answer
462 views

Just what kind of transformations can TransformedDistribution handle?

Why does the following command return an empty plot? ...
5 votes
1 answer
700 views

Textures are not rendered in combined graphics

...
14 votes
1 answer
868 views

Unexpected behavior from VectorPlot

I am surprised at the behavior of VectorPlot in the following sense: plotting a vector field and examining the output at a point $(x_0,y_0)$ reveals that Mathematica doesn't draw the tail of the arrow ...
6 votes
3 answers
7k views

Plot not plotting entire range of function

I have a simple function that I want to plot. I am using Mathematica 8 on a windows machine. I type the following code: Plot[100*0.5^n,{n,0,20}]; And the ...
2 votes
2 answers
2k views

Annotating plots with plain (not italicized) mathematical text

I have a plot and I would like to annotate some mathematical text in it. Initially, Mathematica puts it in italics by using Drawing tools palette, but I want it all in plain text. How can I do it? ...
9 votes
3 answers
1k views

How do you properly create Buttons to change dynamic variables using Table

In this example, I want a series of four buttons to change the value of a variable that is used dynamically to drive a plot. I am trying to figure out why using Table around the buttons causes a ...
3 votes
1 answer
639 views

ListPlot Inset coordinates problem

Inset seem better suited for ad-hoc labels and legends than for precision, programmatic placement of annotation. Given the following 'bottom-up' graphic expression: ...
10 votes
5 answers
416 views

How can I highlight one function in the Plot of a list?

I've got a Plot of a list of functions from this previous question of mine. ...
4 votes
2 answers
722 views

Controlling the frequency of dotting in a plot

It is possible to make a dotted ListPlot. For example: ...