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

learn more… | top users | synonyms (5)

1
vote
1answer
55 views

Compute the evolution of percentages from a data file

My data is stored in external .out files which contain six columns and a large number of rows. I know that I have to provide a small sample but the structure of my data is so unique, so I provide the ...
6
votes
2answers
414 views

Awful styling in MMA10's Plot

Switching to MMA10, I'd want to produce a plot using this code: ...
1
vote
2answers
243 views

3D plot of two spheres with constraint

I intended to plot two 3D volumes of two spheres, each centered around $(x_0,y_0,z_0)$ and $(x_1,y_1,z_1)$, respectively. Here the reference points must be selected as $x_0+y_0+z_0=1$ and ...
0
votes
2answers
125 views

Ploting a topology that accepts saddle point in 3 dimensional plot [closed]

In order to visualize a saddle point, a common example given by Wikipedia is $z=x^2-y^2$. Plot3D[x^2 - y^2, {x, -5, 5}, {y, -5, 5}] I would like to have a 3d ...
0
votes
1answer
100 views

Superpose a map and a region plot

I would like to add on a map of city a region plot, which is this one in this case : ...
3
votes
1answer
92 views

LogLogPlot plugs in zero

Bug introduced in 10.0.1 or 10.0.0 and resolved in 10.0.2 In testing the answers to Plot result of non analytical-integral in V10.0.1, I came across this behavior of ...
4
votes
2answers
217 views

Embedded Graphics: General Relativity

Is there a way to make the following graph with two dimples? Like the central indent and another indent to the side to simulate a central mass like the sun and another smaller mass like the Earth in ...
2
votes
2answers
204 views

Plot result of non analytical-integral

I have the following function: h = 1; c = 1; k = 1; B2 = (2*h*c^2)/(x^5 (Exp[(h*c)/(x*k*T)] - 1)); (someone can see that this integral is the Planck function). ...
1
vote
1answer
242 views

Showing separate surfaces

The XYZPipeJunction is removed using circular trig functions from Both. ...
1
vote
1answer
118 views

How to apply two kinds of Plot styles in single graph

My version is 9.0 I want to apply ColorData and Line Width styles at the same time, like the ColorTheme Function new in 10.0, but there is always errors. Codes under here: ...
34
votes
2answers
1k views

Sketch-type graphics with transparency and dashed hidden lines?

I'd like to create transparent graphs like the following from P1095, Calculus 6th Ed, by James Stewart. Can Mathematica accomplish this? By "transparent," I mean the ability to see the interior, ...
2
votes
2answers
98 views

Trouble implementing a SOFM (Self Organizing Feature Map) [closed]

I have been given some Mathematica code to use to implement a 3x3 SOFM and see how it changes when I alter 2 variables, lambda and gamma. This is my first time using mathematica so I am a bit confused ...
-5
votes
1answer
74 views

Plot 2 student T distributions with different center values

Plot 2 student T distributions with different center values µ, but same DOF. The center values,µ has to be 45 and 48, DOF shall be 9.
13
votes
5answers
749 views

Gap in a continuous plot

Why do I get a gap in the plot below and how can I fix it? (If you are interested in it, you can see a new related question: How to plot an implicit value funtion, which is also a little chanlenging) ...
1
vote
1answer
124 views

Polar image plot

I would like to perform the polar plot of an electron microscope contrast transfer function, into a black and white image. I have used the equation ...
2
votes
4answers
148 views
10
votes
2answers
506 views

Resolution problem of ContourPlot

I met a tricky problem with ContourPlot, which is when I change the range of my variable, I get a totally new figure. For example: ...
84
votes
5answers
19k views

1 Plot, 2 Scale/Axis

I would like to plot those two datasets on top of each other. But they have very different range on the $y$ axis. How can I have two different axis? I found the following on the help menu but quite ...
2
votes
2answers
92 views
0
votes
2answers
59 views

trouble with adding a legend to a plot

I am having trouble with adding a legend to a plot. this is my code,I tryed to use serval things,like ...
2
votes
2answers
181 views

Plotting boundary of piecewise function in ContourPlot

I am trying to do a ContourPlot of the following function: ...
4
votes
2answers
204 views

How to plot this region?

Consider the $2\times 2$ matrices \begin{align} A=\begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix} \end{align} and \begin{align} B=\begin{bmatrix} b_{11} & b_{12} \\ ...
9
votes
1answer
380 views

Moving polygon on path curve to create 3D shape

How can I move some polygon list = {{0, 0}, {0, 15}, {7, 13}, {2, 13}, {2, 5}, {5, 5}, {5, 3}, {2,3}, {2, 0}}; Graphics[{Black, Polygon[list]}] so it follow some ...
3
votes
1answer
300 views

List Contour Plot: Delete some contour lines, but keep the colors

I'm trying to make a Contour plot of a set of data of the kind: $(x,y,f(x,y))$ What i'd like to do is to remove the majority of the iso-line and just leave two of them, but keeping the changing of ...
4
votes
1answer
362 views

ContourPlot3D using a Matlab function through MATLink

I have a Matlab function which accepts a 3 dimensional vector and returns a single number. I want to use this through MATLink to make a 3d plot. A unit sphere: ...
1
vote
1answer
293 views

How to specify x axis values in the ListPlot[] [closed]

I am using ListPlot[] to plot a list of 1000 values. I need to specify the value shown in x-axis.It seems that is a classic question but I have looked for in this forum but I did not get any response ...
1
vote
2answers
172 views

The graph of inverse function $f^{-1}(y)$

Show that $f:I=(-1,1) \rightarrow \mathbb{R},$ it follows that $$ f(x)=\begin{cases} \quad1-x & \text{ as } -1<x\leq 0, \\ \frac{{x}^{-1}+ \lfloor {x}^{-1}\rfloor}{1+{x}^{-1}+\lfloor ...
1
vote
1answer
199 views

Plot multiple solutions of a system of differential equations with different values of constant c by using NDsolve

I am traying to solve system of differential equations with different values of constant c then plot the solution with different values of the constant c. where c= 2.2758, 2.04822, 1.82064, 1.59306, ...
2
votes
1answer
145 views

Rescaling and reorienting Matrix Plot axes

I have implemented a numeric Laplace Solver in C++ and am trying to graphically represent the validity of my method. I have outputted the grid from C++ and imported it into Mathematica to get the ...
2
votes
0answers
41 views

Error message with RegionPlot after SetOptions

I get an error message with SetOptions[RegionPlot, ImageSize -> Medium]; RegionPlot[u v (1 - v) >= 10, {v, 0, 1}, {u, 0, 100}] that says ...
4
votes
2answers
103 views

How to hide arrow tail in VectorPlot3D?

I want to plot arrow head only, because I want to plot a "surface" consist of all arrow head(draw a little ball or point instead of real arrow head,because a 'surface' with real arrow head is ...
6
votes
2answers
208 views

RegionPlot from NDSolve

I am having quite a headache using RegionPlot to see the region of acceptance of certain coupled differential equation. I shall elaborate and try to be as ...
0
votes
1answer
115 views

Display 3D function and its gradient in same graphic [duplicate]

Is it possible to display e.g., $z=x^2+y^2$ with Plot3D and in the same box, in the $z=0$ plane, plot its gradient?
2
votes
1answer
242 views

Sinusoidal Wave over a Circle

A sinusoidal wave can be plotted in a two dimensions. Generally and simply : y[x]=Sin[(2pi/lambda)x] As it is being plotted, the horizontal axis (as a straight ...
2
votes
0answers
68 views

How to combine several plots with this special alignment? [duplicate]

How can combine different plots just as shown in the image? Just give codes about one example plot,and tell me how to create plots as the form as gaven. Follows are codes: n = 2; z = 200; [Alpha] = ...
4
votes
1answer
150 views

ParametricPlot3D: The Mesh shows some unexpected wires to the origin. How to remove them?

In the code below a hexagonal shape is defined and plotted. The ParametricPlot3D shows the hexagonal design almost as intended. However, the mesh makes some strange "wires" to x=y=0. This is ...
0
votes
0answers
77 views

Exporting graphic to pdf acting funny [duplicate]

I have a plot created in a notebook that I usually would right click on and choose Save as pdf. It worked fine until this morning. Shown below, the first plot is what I used to get. The second plot is ...
0
votes
1answer
216 views

Plot a table of functions with different color [duplicate]

I have a function with two independent variables: SNR[t_, f_] := 20 Log10[1/(2 Pi f t)] And I have a list for "t" ...
1
vote
0answers
107 views
0
votes
0answers
37 views

How to show “AxesLabel” when “Frame -> True” [duplicate]

I'm using Mathematica 9.0.1, and using "LogLinearPlot" function. My problem is when I enable the "Frame", and set "AxesLabel", the labels won't be shown. If I disable the "Frame", the labels are ...
5
votes
1answer
121 views

SmoothHistogram inside Show doesn't respect plot range clipping?

You can try this for yourself. Run the following code a couple of times: ...
1
vote
1answer
100 views

Plotting CSV files with UTC Universal Time

So I have many CSV files in format like this: 2014-12-11T16:13:13.038337Z , 3.90092 2014-12-11T16:14:13.456558Z , 3.89734 2014-12-11T16:15:12.444318Z , 3.90092 I imported a CSV file ...
2
votes
3answers
165 views

How to embed a filled Region in a Graphics?

Let for example: regn = RegionDifference[Rectangle[{-2, -2}, {2, 2}], Disk[{0, 0}, 1]]; The only documented way I found to draw a gereric region ...
5
votes
3answers
148 views

Find Unconnected Subregions

If I have a region, how can I identify sub regions that may be disconnected, if any exist? region defines a rectangular region given two diagonally opposed ...
0
votes
1answer
113 views

Dealing with implicit function [closed]

I encounter a big problem when I use Mathematica to deal with implicit functions. ...
7
votes
4answers
645 views

Plot of Implicit Equations

I've read Cool Graphs of Implicit Equations recently. In the article, it mentioned a software GrafEq which can draw graphs of arbitrary implicit equations. For example, And I've tried several ...
2
votes
1answer
161 views

Centering histogram bars over axis values

I'd like to center the bars in my histograms over the correct values of the x-axis. Here is a simplified example: The most common value in the dataset is zero, but glancing at the histogram this ...
8
votes
2answers
192 views

Method options for DensityPlot and ContourPlot

What Method options are allowed for DensityPlot and ContourPlot? I am unable to find this ...
2
votes
1answer
237 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 ...