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

learn more… | top users | synonyms (8)

6
votes
1answer
107 views

Plotting piecewise functions with distinct colors - issue found [duplicate]

I've been making use of the following thread: Plotting piecewise function with distinct colors in each section A handy feature I found there goes as follows: ...
4
votes
3answers
224 views

Histogram of a very large dataset?

I have a very large dataset stored in a file (over 2GB). The file contains a tab-separated table of floating-point numbers. I want to do an Histogram of all the numbers in the table. But if I try to ...
3
votes
1answer
96 views

How to plot data with domain on a circle?

I've got a list of data of the form {{0,x0},...,{359,x359}}, which represents some experimental results given in polar coordinates with fixed radius. How to plot ...
0
votes
1answer
148 views

Join points or draw lines between them on a torus [duplicate]

First I would have liked to map points and texture from a square map (box) in agent-based modellers to a torus. ...
8
votes
3answers
343 views

Overlay vs Show for plots?

I am trying to understand the differences of Overlay and Show to combine two plots. A typical use case is to superpose a ...
3
votes
0answers
87 views

Bug when using Plot3D over an ImplicitRegion?

Evaluating this expression seems to cause Mathematica to beep and quit the kernel: ...
0
votes
0answers
98 views

Given $y$, find the $x$ value of a point on a Bezier curve

I have linear equation of Bezier curve with one control point: f[x_] := (1 – t)^2 x0 + 2 (1 – t) t x1 + t^2 x2; f[y_] := (1 – t)^2 y0 + 2 (1 – t) t y1 + t^2 y2; ...
2
votes
2answers
179 views

Converting a 3D Plot to a Region Plot [duplicate]

I have a 3D Plot with 3 separate functions for z in terms of x and y. I would like to ...
0
votes
0answers
80 views

solving an equation containing an complex integral

I want to solve a numerical equation which include an integral. The problem parameters are : w (is a complex : w = wr +I wi), ...
13
votes
5answers
614 views

Plot the plane so different condition has a different color

I have a list of functions defined on the plane, and I want to know which one of those functions is smaller than the other functions at particular points. Currently, what I do is ...
10
votes
2answers
234 views

How to automatically have ContourLabels in middle of Contour lines if specific levels are not specified?

I looked at all the questions/answers relating to placement of ContourLabels but could not find an answer to this. Some of the answers before are based on user ...
3
votes
2answers
96 views

Set PlotLabel length

This is a small adjustment I am making to a nice presentation from Welwyn Hollis's CalcLabs, Mathematica, Singe Variable Calculus. ...
10
votes
1answer
230 views

Behavior of TimelinePlot with multiple datasets of associations

Bug introduced in 10.1 and fixed in 10.3 The following TimelinePlot behaves as I would expect: ...
-1
votes
1answer
63 views

Parametric solving a nonlinear equation and plotting answer

I want to get x and y as a function of z in below nonlinear equations and plot ...
0
votes
0answers
75 views

How to map a 2D figure into the 3D plane?

I have several 2D figures, and now I want to map them into the 3D space plane, the picture below shows my idea. The figure above was made by maping texture of the 2D plot on the 3D plane and the ...
2
votes
2answers
109 views

Plotting a function defined to be infinite over a sub-domain [duplicate]

I'm trying to plot the following function with the constraints shown, $$f(x)=\begin{cases} \infty \quad x<0 \\ A\,x\quad x\ge 0 \end{cases}$$ However I can't work out how to show this in ...
5
votes
3answers
507 views

Plotting the direction field of a differential equation

I have to sketch the direction field for the following differential equation: $$\frac{dy}{dx}=\frac{-0.02 y +0.00002 xy}{0.08 x-0.001xy}$$ This is the code I used, which gives an incorrect plot: ...
0
votes
0answers
42 views

Problem displaying “/” correctly in exported svg file of Plot in Mathematica 8

In a plot, I use "/" on the axes labels to denote units. E.g. "t/s" meaning time in seconds. I believe this is pretty standard in Physics. ...
1
vote
1answer
49 views

How to adjust vector scaling with a specific aspect ratio

I'm trying to create a vector plot with uniform vector scaling. I need the x and y ranges to be very different, because I need to highlight the angle between the vectors and the y=0 axis. This means ...
3
votes
1answer
90 views
7
votes
2answers
130 views

Panning with Mouse + Moving A Curve

I would like to be able to move any curve (for example f(x)=x, or g(x)=x^2) by mouse dragging the particular curve. I would like to keep the functionality I have for panning across the screen in ...
4
votes
3answers
108 views

How to get a line density from list density plot?

I have a list density plot from a list ls={{x1,y1,z1},{x2,y2,z2}}.... How can I extract the line density with a fix y, such that ...
15
votes
2answers
923 views

Adding ContourLabels changes contour colors?

Bug introduced in 8 or earlier and persists through 10.3.1 or later I have an array s5 I want to plot using ListContourPlot ...
7
votes
2answers
190 views

Panning by moving Origin (0,0) with Mouse

Given a 10 by 10 grid like the one below and the axis origin somewhere on the grid, I would like to be able to place the mouse pointer at the axes origin (0,0), then press and hold the mouse button ...
10
votes
4answers
357 views

Panning with Mouse

This is related to the question i just asked here but not the same. How could i create a manipulate that lets me move the graph to any position i want by clicking and dragging anywhere. Here is an ...
28
votes
2answers
7k views

What are the standard colors for plots in Mathematica 10? [duplicate]

Mathematica 10 release appears to have changed the default styling of plots: the most visible changes are thicker lines and different default colors. Thus, answers to this stackoverflow question are ...
5
votes
1answer
309 views

Default FontFamily for PlotLabel

This is probably a rather basic question and I presume I am simply unable to make proper use of the Options[] function: I am trying to figure out what the default ...
4
votes
1answer
361 views

How can I improve ContourPlot to get smooth curve?

I am working on the ContourPlot to creat contour line of a InterpolatingFunction recently. This is my data. This is my simple ...
3
votes
1answer
76 views

SmoothHistogram3D with a ColorFunction representing z-values of the data set

I'd like to make a 3d plot of a list of {x, y, z} points, where the height of the plot scales with the density (as in histogram) of the xy-values and the color ...
3
votes
1answer
64 views

Is the real spherical harmonic (l = 1, m = 0) really 'bigger' than (l = 1, m = 1)?

Using SphericalPlot3D to plot the real spherical harmonic with l = 1 and m = 0: ...
1
vote
0answers
43 views

Why isn't Options[] finding all options? [closed]

I've created a plot with 3 non default options. See below. I would like to list these options using the Option[] function. When calling Options on the the plot, ...
7
votes
3answers
150 views

BarLegend can't make spaced contours when contours number>11

According to Document of BarLegend,BarLegend will select equally spaced contours: BarLegend[cf,contours] generates a legend that identifies color ranges from the color function cf based on the ...
6
votes
2answers
174 views

Dynamic plot with synchronization of real time

I want to do a dynamic plot with synchronization of real time, that is, I have a function, f[t], that is a function of time (seconds), so I want to see the curve changing not so fast or not so slow, ...
3
votes
2answers
82 views

Plotting a DateListPlot and a CandleStickChart together

I'm trying to plot a DateListPlot and a CandleStickChart together. Initially I was trying to add a FinancialIndicator by spelunking TradingChart, but it's quite complex, I think I could manage to do ...
1
vote
2answers
94 views
0
votes
1answer
76 views

Solving an equation and ODE simultaneously [closed]

I have a differential equation like $y'+a*y+b=0$. I have to find the value of $u=c*y+d$. These are the simplified form of the ODE and equation. Also, I have to plot $y$ and $u$ together.
5
votes
3answers
235 views
8
votes
2answers
423 views

How can I use ContourPlot to creat streamline: proper arrow orientation and correct domain?

I get into trouble when I use ContourPlot to draw streamlines in a free surface flow domain. This is my data.The data are a little bit big, please be patient. ...
10
votes
4answers
492 views

Revolution of Koch Snowflake

How to plot shape which made from revolution of the Koch Snowflake? I try to use $RevolutionPlot3D[f,\lbrace {t,t_1} \rbrace]$, but I think there is no $f$ for Koch Snowflake. Sorry for my ...
1
vote
1answer
72 views

Joined-True cuts data to be plotted

I have imported data (which are so many numbers and if necessary please see http://pastebin.com/RgWLJmTS) and I plotted them with ...
4
votes
3answers
123 views

How do I plot EventSeries?

The documentation that I can find suggests that I should be able to plot an EventSeries with DateListPlot. But this doesn't work ...
4
votes
1answer
77 views

Joined line does not match with PlotStyle

If I have a list data (http://pastebin.com/RgWLJmTS) which is about to be plotted with ...
5
votes
4answers
138 views

How to correct the name of axis?

In the output of a code I can view that the same axe has two names "z" and "x". How could I correct this? The code is ...
0
votes
1answer
83 views

Manipulate a graph from data

I want to manipulate some data, to do this i create a graph. But i don´t know how to manipulate the data. ...
3
votes
2answers
121 views

Changing location and direction of axes

I need to produce a plot that looks something like this: from a function definition where z (the vertical axis) is the independent variable. I can easily invert ...
3
votes
1answer
99 views

Why is TimeSeriesForecast linear?

When I use FinancialData with TimeSeriesForecast, the resulting graph is always linear and thus not very accurate. ...
5
votes
1answer
228 views

How to plot graphics objects such as lines or polygons logarithmically

I am making ListLogLog plots with polygons in the Prolog and lines in the Epilog, and I want ...
3
votes
2answers
91 views

ListPlot: Adding Line with Epilog to automatic GridLines - adjusting Style

I want to draw ListPlots with automatic GridLines and add a custom line. My solution is to use the Epilog option. To make sure that the automatic GridLines and my custom line have the same style, I ...
6
votes
2answers
518 views

Map of Swedish regions?

There have been some questions dealing with how to draw individual US states since such data doesn't come with Mathematica through its CountryData which offers ...