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

learn more… | top users | synonyms (11)

0
votes
1answer
175 views

ListContourPlot - data display range

Defining contours in ListContourPlot seems to work well when the data plotted increases/decreases linearly. Exponential increases (e.g. sharp mountain peak in the center of a slightly changing, ...
2
votes
2answers
189 views

Plot of the Mod of NDSolve solutions sometimes connects discontinuous jumps

UPDATE: The answers given are informative, and provide a workaround which has been given in other posts, but is unfortunately not very efficient. There still seems to be a lack of deeper understanding ...
13
votes
1answer
198 views

Plotting an additional axis with ticks

When preparing non-standard graphs, it is common that one needs an "extra" axis, parallel but displaced from a traditional axis. This might happen in many cases: When you want to plot two curves ...
2
votes
2answers
114 views

How to use GraphicsGrid with ListPlots that have a PlotLegend?

Here's a contrived example of what I'm trying to do. Basically, I want a function to return some object that has two plots next to each other (or one on top of the other), both large, and both with ...
1
vote
3answers
121 views

Combining Plots of functions with overlapping domains

I have a function ...
0
votes
2answers
182 views

how to use a ready function in your code for panning and zooming on 2D plots? [duplicate]

As I said before for the time being, I don't want to use Mathematica as a programming tool. I'm just using it as a calculater to compute integrals, solve equations, ...
2
votes
1answer
134 views

Controlling the plot style when multiple curves appear in a single plot

To plot two lines in black on same plot, I specified PlotStyle -> {{Dashing[Large], Black}, {Dashing[Medium], Black}} Is it possible be more concise? To ...
17
votes
1answer
475 views

Import and Plot Git Commit History

What might be the easiest to import and plot all commit history for a github project? I'm looking for something similar to the following.
0
votes
1answer
123 views

How to plot an arbitrary function in mathematica [duplicate]

I have plotted and manipulated the Von Mises Distribution as follows: Then I want to change the function of the distribution a bit Because I want its function be as: ...
4
votes
2answers
177 views

How to remove black edges between spherical shell?

I am interested to know how to make the concentric shell smoother. This is what I have now: This is the code i used to generate that image: ...
4
votes
3answers
158 views

How to plot slices of a surface of an iterative function parametrized by the iterator k?

I am trying to plot a surface of $$z=\sin^{(k)}(x),\text{where (k) means nesting the function k times}$$ to visualise the fixed points and their neighbourhood to visually analyse their behaviour. ...
2
votes
1answer
117 views

Cannot get plot of polynomial (x^2 + y^2 + z^2 - 4)^2 == 0 from ContourPlot3D [closed]

I'm trying to make a 3D contour plot the polynomial equation $$(x^2 + y^2 + z^2 - 4)^2 == 0, \quad \quad (1)$$ Without power 2 $$ (x^2 + y^2 + z^2 - 4) == 0, \quad \quad (2)$$ it plots a ...
0
votes
2answers
181 views

Axes labels as multiples of $\pi$

I have a list as containing seven elements: ...
0
votes
2answers
116 views

How do I put a data point in a 3D graph? I need it in (0,0,1) [closed]

This is what I have now ...
1
vote
1answer
216 views

Plotting a Taylor series of Partial sum

Hi people, I want to plot the partial sum from n=0 to n =6 with the given function f about the point a=0 (just the maclaurin series). Unfortunately, I am unable to make sense of the issue M'tica is ...
0
votes
2answers
175 views

Parametric Region Plot

I tried to find solution in a few discussions but I couldn't solve my problem because my knowledge is basic. I have the following functions and parameters: ...
1
vote
1answer
48 views

Trying to adjust the numbers for the horizontal axis of a plot [closed]

I have some data (32 points) which corresponds to elements along an artificial transmission line of a fixed distance. The plot in its current form is shown below: What I am trying to do is make the ...
0
votes
1answer
119 views

How to plot zeros of confluent hypergeometric function

I am fairly new to mathematica so I need a little bit of help. I need to plot the zeros of an equation containing confluent hypergeometric functions. The equation i need to solve is given by the ...
1
vote
2answers
117 views

Plotting mixing entropy [closed]

Hello I am attempting to write a code for plotting mixing entropy. My graph will not show up. Please give guidance of how to fix my problem. ...
7
votes
4answers
634 views

How do you find the self-intersection points of a single parametric trigonometric function? [duplicate]

How do you use Solve or FindRoot or other Mathematica functions to find the points at which the graph of ${\bf a}(t) = 3 \cos ...
10
votes
2answers
333 views

Recovering data from an existing plot

I have some plots in an old Mathematica notebook that I'd like to re-create in Matplotlib (for stylistic consistency with the rest of the plots in my thesis). Unfortunately, I've lost the data that I ...
2
votes
1answer
68 views

Why is there a vertical line inside the frame? [closed]

I would like to present two similar codes here. The first one returns a graph with a vertical line inside the frame,but the second one doesn't. ...
1
vote
1answer
38 views

BubbleChart ignores Ticks option [closed]

BubbleChart does not display ticks to the Ticks option specs. ...
0
votes
1answer
45 views

plot with horizontal similar specified markers

I have a data as: ...
3
votes
3answers
271 views

What is a good way to display many discrete probability distributions on the same plot in Mathematica?

For something like 2 to 30 distributions each with 2 to 30 values. If we assume the distributions have unique values, a standard stacked bar chart is insufficient, but maybe something similar would ...
5
votes
4answers
246 views

error with NIntegrate and RegionPlot

Bug introduced in 10.2 or earlier and persisting through 10.2 or later Here's a simplified example of what I'm trying to do: ...
7
votes
3answers
359 views

How to do this type of percentual stacked plot in Mathematica?

I have data of letter occurrences in different positions. I want to plot the frequency of each letter in each position. The type of plot I have in mind is as follows: How can I do this in ...
1
vote
1answer
60 views

How to make Which not connect its parts? [closed]

I've noticed that when "Mod" and "Which" are used to the same effect, they plot to slightly different results. Take the following example: ...
6
votes
2answers
138 views

Label intersection points of several curves

I'm trying to label all intersection points between 2 functions and a 3rd one in a Plot by using Kuba's second solution from here , but I'm not getting the expected result: there are additional, wrong ...
20
votes
2answers
356 views

Spacing out random walks so they don't overlap

From an external simulation program, I have lots of particle tracks which follow random walks, all of which start at or near the origin $(0,0)$. This means that when I plot the walks in Mathematica, ...
3
votes
1answer
73 views

WorkingPrecision in a sum

If I am interested in getting a fairly precise plot of f2 below, can I use WorkingPrecision to do this? ...
0
votes
0answers
32 views

Plotting data based on a specific property of its elements [duplicate]

Now I need to plot a series of points witch have the form like {{x1,y1,z1},{x2,y2,z2},...,{xn,yn,zn}},and the weightage of the ...
5
votes
1answer
147 views

How to plot multi-colored regions separated by InterpolatingFunction on sphere

I would like to plot a sphere with multi-colored regions separated by solutions of a differential equation (no explicit expression is available for the separating curves). The result I am after would ...
2
votes
4answers
130 views

Lattice lines with integer coordinates in 3D plot

I would like to draw a surface in a 3D plot together with gridlines (horizontal lines and vertical lines) parallel to x y z axes with integer coordinates. Of course not only on faces, but also inside ...
1
vote
1answer
163 views

Draw a point on a curve or surface; also draw a line in 3D plot?

I would like to draw a point on a curve or on a surface. For example, I would like to plot the point $(1,1,\sqrt{2})$ with a special color. ...
4
votes
1answer
323 views

Plot only those regions where a function's value is positive

I want to plot only those portions of the following function in which the function is positive (e.g. from $0-0.01$ & $0.02-0.03$ and so on): $$230\sqrt{2}\sin\left(100\pi t\right)$$ In addition ...
8
votes
1answer
103 views

Minimizing NExpectation for a custom distribution

As discussed and advised in Meta: Migrate a question..., I've copied a 2012 posted question from StackOverflow (posted before this site began running), which has gotten a lot of attention (but after 3 ...
3
votes
0answers
118 views

SliceDensityPlot3D not found

Bug introduced in 10.2 or earlier and fixed in 10.3.0 I am using Mathematica student edition, version 10.2. When I use the command ...
3
votes
2answers
96 views

Can I control the order of overlay in Filling?

The default ordering is "in the y direction". In this example I would like the red regions to overlay the blue regions. ...
3
votes
1answer
124 views

Interpolation of ListContourPlot3D, Volumetric data (cube file)

I know there are lots of information about this on stack exchange! Data interpolation and ListContourPlot InterpolationOrder for ContourPlot Unfortunately I was not able to find a proper way to ...
2
votes
2answers
151 views

How to correctly scale the x axis?

I am not absolutely sure how to formulate my question but here is my first attempt: I have 25 rods with lengths in cm ...
1
vote
1answer
86 views

Plotting tupper's function [duplicate]

How to plot Tupper's (so called) self-referential formula in Mathematica of course? I wanted my value of k or N as they call it, to fit in the formula so that I get my result. In those programs ...
5
votes
1answer
199 views

Combining two mesh functions

I have: ...
1
vote
2answers
393 views

Styling data points with smiley face markers

I would like to know how to make a smiley face in Mathematica.
3
votes
2answers
174 views

Combine Multiple ListDensityPlots into 3D Cube

I am wondering if anyone has suggestions on how best to go about creating an image of several ListDensityPlots merged into a single 3D cube (with only the axes, not the full frame). For example, I ...
3
votes
1answer
123 views

ContourPlot has extra mesh

There is an odd white mesh that appears on top of any contour plot I make. ContourPlot[x + 2 y, {x, 80, 300}, {y, 50, 100}] Any ideas on how I get rid of this? ...
4
votes
1answer
292 views

Plot style/theme for Sciences [closed]

I am in a pursuit of perfection for scientific plots. The aim is to have best clarity of complex data that looks amazing when published. Please share your tricks and code for Scientific plots in ...
1
vote
1answer
65 views

Is there a way to change PlotRange without redrawing?

I'm running some code that takes a very long time to generate a final image. So naturally when the PlotRange on the original image was too small, I'm frustrated ...
0
votes
1answer
50 views

Enter meter unit with Histogram [closed]

I'm looking at the documentation for Histogram and I am trying the example: ...
1
vote
2answers
200 views

Help plot an illustration of “neighborhood” around a point on the real line

I want to plot the following illustration in mathematica. First I need to plot a half open interval $(a,b]$ on a real line (ticks and labels are not needed). Then I need a piece of symmetric curve ...