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

learn more… | top users | synonyms (12)

0
votes
1answer
63 views

How to plot equally discrete points? [closed]

I'm trying to create a table of equally discrete points and plot them with: a = 5 ListPlot[Table[{a/9*(i - 1), a/9*(j - 1)}, {i, n}, {j, n}]] But I cannot plot ...
3
votes
1answer
122 views

RegionPlot with different boundaries

I would like to plot different regions, some of them with different boundaries. For instance if I use ...
3
votes
2answers
85 views
14
votes
5answers
553 views

How to extract a contour line (or a region) from a ContourPlot?

Given a ContourPlot with a set of contours, say, this: is it possible to get the contours separating domains with the different colors in the form of lists? ...
5
votes
1answer
240 views

Unexpected result when using PlotRange in Mathematica 10

Show[ Plot[x, {x, 0, 1}, PlotRange -> All], Frame -> True, PlotRange -> {{0, 1}, {0, 1}}, AspectRatio -> 1] gives the expected result in ...
3
votes
0answers
240 views

Position tick labels on box sides of the axis [closed]

I use ticks label both for scale (0.8, .9, 1.0, ... ) and for marking specific values of interest (with custom text). I'd like the numbers to be above the axis and the text below it. I was able to ...
0
votes
1answer
134 views

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

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}] ...
1
vote
1answer
120 views

Changing a piecewise function into a periodic function [duplicate]

I have: f[x_] := Piecewise[{{x, 0 <= x < 1}, {2 - x, 1 <= x < 3}, {x - 4, 3 <= x < 4}}] Plot[f[x], {x, 0, 4}] Which produces this plot: ...
5
votes
1answer
181 views

Graphics3D/Plot3D rendering issue

I have an issue in Mathematica with the rendering of 3D graphics. Two sides (right and bottom) of some sort of bounding box are present, and, in the instance of ...
2
votes
1answer
105 views

Automatic text-wrapping in labels in `TimelinePlot`

Part-related to this question and part-related to this one, I would like to make use of the new features of TimelinePlot in 10.3, but would like to incorporate some ...
1
vote
1answer
53 views

Timing and ListPlot

I am currently trying to examine the Timing function as it relates to generating primes and factorize large integers. What I want to do is to visualize how time ...
0
votes
2answers
102 views

How to plot in the complex plane? [duplicate]

I am new to Mathematica and I would like to ask how to plot in the complex plane in general. Also, as an example, how do you plot $e^{i\theta}$ in Mathematica? In physics the function $e^{i\theta}$ is ...
1
vote
1answer
58 views
3
votes
1answer
144 views

Plotting function with unique symbols [closed]

I would like to plot a function which involves multiple symbols created using Unique. Consider the following simple example. ...
6
votes
2answers
883 views

How to create a histogram of annual events, such as cherry blossom time

I have calculated blooming and ripening times for a specific variety of plant, based on actual temperature data from over 40 years. I would like to create two histograms on a single axis; one for ...
43
votes
7answers
25k views

Labeling individual curves in Mathematica

I need to create a plot for export and inclusion in a report. Is there a better way to label curves than PlotLegends? From what I've read and my personal experience,...
1
vote
1answer
119 views

Out of range red glow on inter-dependant sliders in manipulate

In manipulate, I need to define two sliders : one basic slider, and a second one for which the end value depends on the current value selected on the first slider. How can I achieve this in ...
2
votes
2answers
174 views

Manually assigning Axes label position in Plot3D

How can I adjust the position of axes labels with respect to the axes they are bound? Like shifting slightly right or left. I do not what to destroy the graphics' dynamics and render it 2D. ...
11
votes
2answers
164 views

Unexpected view of the Comsol result when I postprocess it in Mma

I simulated some nonlinear PDE using Comsol. Here one can find the results u=u(x,y) in the form of an Excel table with the terms ...
2
votes
1answer
66 views

Plotting certain time points in a parametric equation? [closed]

I'm using Mathematica 5.0 and I have the following problem. I have the following parametric equation that I plotted successfully. ...
2
votes
3answers
69 views

Difference between two Listplots [closed]

this is a simple question, and excuse me if it's already been answered; I searched around and couldn't find anything. I have two listplots, both along the same number of x data points, but with ...
1
vote
1answer
369 views

How to make a contour shading like this

How can I adjust the contour shading to appear like below?
-2
votes
1answer
91 views

monochromatic and mesh style of 3d plotting

how to adjust the mesh and monochromatic plot to be same as this
2
votes
2answers
80 views

Label multiple Data in Set of plots

in this simplified example I defined several data and plotted them at once to reduce typing work. Unfortunately I cannot find the syntax or option to label/ name each data array, which all belong to ...
19
votes
1answer
431 views

Why Plot3D shows differently with almost the same data

I really can't understand this. I wrote two functions, one with Compile called funcom, one with librarylink to link a fortran ...
0
votes
0answers
89 views
-2
votes
1answer
66 views

Manipulate aborts the computation of NDSolve with the Piecewise function after curtain time [closed]

I'm facing the problem with performance: Manipulate is working fine till end time =60 sec, after that it aborts. There is NDSolve inside Manipulate with Piecewise function, and the plot of the ...
1
vote
3answers
136 views

Plot multiple functions with different but overlapping intervals

Suppose I numerically solve a differential equation by using sol = ParametricNDSolve[{y'[x] == b y[x], y[0] == 1}, y, {x, 0, 0.3}, {b}] And then I want to plot $...
1
vote
1answer
112 views

Visualize how a function varies as its parameters vary [closed]

I'm quite new to Mathematica, so maybe i havent figured out the right help file to look or the right function. I apologize if thats the case, but I would like to be pointed in the right direction if ...
15
votes
0answers
173 views

ListContourPlot and ListContourPlot3D use better interpolation for arrays of values than for lists of tuples (i.e. {{x,y,z,f[x,y,z]}..}

From reading the documentation, it seems that ListContourPlot3D should work equally well on an array versus a list of tuples, ?ListContourPlot3D ...
2
votes
1answer
47 views

Arrowheads cover the end of the ticks

When arrowheads are added to the axes, the ends of the ticks are covered by the arrowheads, e.g., ticks for $1$ disappear in the plot below, ...
3
votes
1answer
163 views

Is there a way to find the values of x for a graph in a given area?

Sorry for my wording, I'm not sure what the proper term for this is. I want to find the sections of x for which the graph of some function, f(x), is in a given area. For an example of what I'm ...
5
votes
2answers
78 views

BarLegend with two different scales (ticks&labels)

I am looking for a way to plot e.g. a legended DensityPlot with a BarLegend, where the colorbar shows two differently scaled ...
0
votes
0answers
32 views

Forcing equal scale in RegionPlot3D [duplicate]

I want the following 3D graph using RegionPlot3D. But the following code does not give me uniform scales on different axes. ...
0
votes
1answer
82 views

How to colorize curves intersection in a manipulate function

I need to show the intersection area of two curves, using the manipulate function in Mathematica. Here's a fully working example, and a preview below it : ...
2
votes
0answers
66 views

How to plot points in 2D without restricting their apparent positions to pixel grid?

Compare the two renderings of the same point in the following code (this is just a reduced example, I know I could just zoom in the scene, it's not an option in original code): ...
1
vote
0answers
94 views

Mapping a region [closed]

Suppose I have a RegionPlot, and I want to produce a second graphic, but with a function $f$ applied to every point. For example, I could have the region in the complex plane $\{z \in \mathbb{C} \mid \...
3
votes
1answer
157 views
12
votes
2answers
1k views

Labels and tickmarks inside Frame

Is there a way to force Plot and related functions to place the tick labels inside, rather than outside a frame? For example, consider, ...
18
votes
3answers
2k 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:
15
votes
5answers
3k views

Styling ticks in a plot

I managed to turn the ticks inside-out but the ticks go now through the numbers. In fact I would like to have it like in the picture attached (ticks pointing outside the plot and no additional ticks ...
0
votes
1answer
69 views

How to plot the following function?

Say I have a function f(x,y,theta,xi) = x*y*c*theta*xi; where c is a function of theta ...
3
votes
1answer
71 views

Move framed label alongside y-axis

Maybe the answer to this question is trivial but I am stuck with my last modification for hours now. In my plot i added framed labels to add a certain distance of the labels from their axes. This ...
4
votes
2answers
832 views

Getting consistent tick lengths and positions of labels

Bug introduced in 7 or earlier and persists through 10.3.1 or later I'm trying to have identical tick mark lengths for both horizontal and vertical ticks and I wish them to look outside of the plot ...
3
votes
1answer
108 views

Plotting a finite series w.r.t. a parameter [closed]

So I would like to plot the series below: $$ S_q = k \frac{1-\sum_{i=1}^{W}(1/W)^q}{1-q} $$ where $k$ is a constant which I assume for now to be equal to 1 and $q \in \mathbb{R}$. However, for my ...