Skip to main content

New answers tagged

4 votes
Accepted

Why do I get repeated points when extracting mesh points from ParametricPlot

The extra points come from the highlighting functionality added to plots. Turning the highlighting off removes one copy of the points: ...
Goofy's user avatar
  • 3,012
3 votes

Why do I get repeated points when extracting mesh points from ParametricPlot

If you don't use Normal you get the two points and their indices: Cases[plot, Point[{x_, y_}] :> {x, y}, All] {{564, 565}, {...
eldo's user avatar
  • 74.4k
0 votes

Using the result of NDSolve to make animation

Here is the fix from my comment, which moves the variables x and t from being global and external to ...
Goofy's user avatar
  • 3,012
0 votes

Using the result of NDSolve to make animation

The problem is the localization of t inside Manipulate. The "t" in sol is not the same "t" in Manipulate. Therefore Manipulate does NOT replace the "t" of sol by a number....
Daniel Huber's user avatar
  • 52.6k
1 vote
Accepted

Plotting more than one curve in one plot using parametric plot option

It works, but you need to use same number of circles and also use Evaluate to get the coloring. Also added Frame->True ...
Nasser's user avatar
  • 145k
1 vote

Plotting circles at each point in space

If I understand you right, why not use Graphics to draw the circle? something like ...
Nasser's user avatar
  • 145k
1 vote

Given the plot of $(v, f(v))$ how to scale horizontal axis with $v \to 87\sqrt{-2\log(1 - v)})$, while keeping the vertical axis unchanged?

$Version (* "14.0.0 for Mac OS X x86 (64-bit) (December 13, 2023)" *) c[u_, v_] := Min[u^0.0325 v, u v^-0.1018] Using ...
Bob Hanlon's user avatar
  • 159k
0 votes

Plot a very long and complicated elliptic function!

Your code should be somewhat improved: C is reserved, the function takes complex values. ...
user64494's user avatar
  • 26.6k
0 votes

Plot a very long and complicated elliptic function!

Capital 'C' is a protected symbol; changed all 'C' to lower case c. Added PlotRange->All. ...
Lexington1776's user avatar
2 votes
Accepted

ContourPlot3D uniform color regardless of view point

Update (I am not sure why the first version affected the legends color): ...
azerbajdzan's user avatar
  • 18.7k
4 votes
Accepted

When I arrange two 3d-plots using Grid, position of axes-y changes

plot = Plot3D[{x^2 + y^2, -x^2 - y^2}, {x, -2, 2}, {y, -2, 2}, ColorFunction -> "RustTones"]; Using ...
eldo's user avatar
  • 74.4k
1 vote

How can I annotate a ListLogLinearPlot with Graphics and Text?

I think this is probably compatible with v9 ...
Bob Hanlon's user avatar
  • 159k
11 votes
Accepted

Frank Stella's Protractor Series - can we reproduce Lac Laronge IV?

Take some code from my previous answer. https://mathematica.stackexchange.com/a/295351/72111 ...
cvgmt's user avatar
  • 74.8k
10 votes

Frank Stella's Protractor Series - can we reproduce Lac Laronge IV?

Starting out from a graphics skeleton in order to cut out the base forms (leafs) and putting all together through image processing: ...
vindobona's user avatar
  • 4,421
3 votes
Accepted

ListLogPlot omitting data points

Try making the substitution 0.0 → $MachineEpsilon ListLogPlot[ {data1T, data2T, data3T} /. 0.0 -> $MachineEpsilon, PlotRange -> All, Mesh -> All, Joined -> True, PlotLegends -> Placed[{&...
Mark Kotanchek's user avatar
6 votes

Plot fails to plot. What am I doing wrong?

If you just need a display of an approximation of the pdf, random sampling with a large sample and a SmoothHistogram works fine for your particular distribution. <...
JimB's user avatar
  • 41.8k
6 votes

How to draw such a sphere with mesh

Using kglr's answer to Jeener's Flower Width of the mesh bands w = 1/3; Number of mesh bands n = 25; ...
eldo's user avatar
  • 74.4k
1 vote

3D plotting of parametric curved surface

...
Narasimham's user avatar
  • 3,170
13 votes

How to draw such a sphere with mesh

Besides of the Mesh method, here we provide a region method. We construct some holes in the Parameter {u,v}-domain. d is the ...
cvgmt's user avatar
  • 74.8k
0 votes

GraphicsGrids crops the plots

The problem can be solved by specifying ImageSize in both plots: ...
eldo's user avatar
  • 74.4k
9 votes
Accepted

How to draw such a sphere with mesh

...
David G. Stork's user avatar
0 votes

Package function doesn't plot math function when given as input

When in the package I get this if i try and plot x: But this works (SymbolTools` is my own package I put this in to test): ...
Tapiocaweasel's user avatar
7 votes
Accepted

3D plotting of parametric curved surface

Edit To get a smooth filling,we seperately draw the pieces of boundary surfaces. ...
cvgmt's user avatar
  • 74.8k
3 votes

Vortex beam profile plot

The spiral "gaps" are not the same for l=1 and l=2 they just look so because Alex Trounev used in his code ...
azerbajdzan's user avatar
  • 18.7k
2 votes

Scaling problem with plot and legend

...
Bob Hanlon's user avatar
  • 159k
5 votes
Accepted

Kernel quits while using ParametricNDSolve

We can use NIntegrate instead of NDSolve as follows ...
Alex Trounev's user avatar
  • 45.1k
11 votes

Can we reproduce Antonio Asis circle interferences?

Edit We change the operator order,that is, at first RegionUnion then RegionDifference ,now it work for all the 11,12,13,14 ...
cvgmt's user avatar
  • 74.8k
12 votes

Can we reproduce Antonio Asis circle interferences?

Update: Generating the highlighting disks over a grid and adding disk edges: ...
vindobona's user avatar
  • 4,421
14 votes
Accepted

Can we reproduce Antonio Asis circle interferences?

My procedure consists of the following steps: Define a function that produces the basic element - a circle with six alternating colour areas Create a basic black and white random image consisting of ...
yarchik's user avatar
  • 18.6k
5 votes
Accepted

Plotting Phase Portrait of Duffing Equation

The best what we can do with StreamPlot ...
Alex Trounev's user avatar
  • 45.1k
0 votes

Reducing the space between plots in GraphicsGrid?

plot = Plot[Exp[-0.03 * t], {t, 0, 300}, AxesLabel -> {None, "testing1"}]; Using Column ...
eldo's user avatar
  • 74.4k
6 votes

Plotting Phase Portrait of Duffing Equation

Using ParametricNDSolve with {a,b} be the initial point. We solve {U,U'} simultaneously( see ...
cvgmt's user avatar
  • 74.8k
1 vote
Accepted

Im a UG college student we have Maths lab in Last year and we are using mathematica but im getting error "cannot assign to raw object 1"

You have many errors. But basically you were doing this x0 = x1 But x0 is an input argument. In Mathematica input arguments ...
Nasser's user avatar
  • 145k
1 vote

How to calculate a list without loop?

list = {{a1, b1}, {a2, b2}, {a3, b3}}; Using ReplaceAt (new in 13.1) ...
eldo's user avatar
  • 74.4k
10 votes
Accepted

Reproducing Roman Verostko's FF 2004 Drawing

The key feature of glyphs section that is missed in OP code is that the artist uses only about 28 different glyphs - he uses them as alphabet ...
azerbajdzan's user avatar
  • 18.7k
0 votes

Aligning a plot with another function through bar legend

Thank You everyone from the mathematica stackexchange community and special thanks to people who responded to my question. I actually got the answer and I am posting the code here if someone needs in ...
Debojyoti Mondal's user avatar
1 vote

How to find the regression line equation of these two groups of data and draw the scatter diagram and regression line?

I post this to illustrate versatility of Mathematica/Wolfram Language: ...
ubpdqn's user avatar
  • 61.6k
12 votes

Reproducing Roman Verostko's FF 2004 Drawing

Starting with 3 curves (top, bottom, trajectory) and generating the plot from the top curve to the bottom curve along the trajectory. Using a similar method for generating curves like the one that ...
vindobona's user avatar
  • 4,421
1 vote

How to change positioning of legends using Show command?

...
Bob Hanlon's user avatar
  • 159k
15 votes

Reproducing Roman Verostko's FF 2004 Drawing

Perhaps this is a start. We can find an appropriate 3D surface and view point to sample mesh lines on. Something like this: ...
Greg Hurst's user avatar
  • 36.2k
6 votes
Accepted

Graphical artifacts appearing on translucent lines in plots

CapForm[] fixes it on my Mac: ...
Michael E2's user avatar
  • 236k
6 votes

Graphical artifacts appearing on translucent lines in plots

I think this is a bug, but there are many workarounds. It seems to me that the problem is that Mathematica is internally dividing the trace into segments, and the overlapping regions of the thick semi-...
rhermans's user avatar
  • 36.7k
1 vote
Accepted

Merge two plots with a common x-axis

...
Bob Hanlon's user avatar
  • 159k
1 vote

How to find the regression line equation of these two groups of data and draw the scatter diagram and regression line?

v1 = {0.04, 0.06, 0.04, 0.08, 0.08, 0.05, 0.05, 0.07, 0.07, 0.06}; v2 = {0.25, 0.4, 0.22, 0.54, 0.51, 0.34, 0.36, 0.46, 0.42, 0.4}; data = Transpose[{v1, v2}]; ...
eldo's user avatar
  • 74.4k
15 votes

Reproducing Roman Verostko's FF 2004 Drawing

Method-1 We add a pertabation p[x_, y_]= {y*Cos[y], x*Sin[x]} to the identity transformation {x,y}|->{x,y} to get the wave ...
cvgmt's user avatar
  • 74.8k
0 votes

Duplicated points not labeled when presented to ListPlot as point->"label"

...
eldo's user avatar
  • 74.4k
2 votes
Accepted

Spherical Shell Heatmap

First of all it is a fake density plot (like most (if not all) of the posts in your link in OP) since density computed in 2D and then wrapped around a sphere is not same as if the density was computed ...
azerbajdzan's user avatar
  • 18.7k
6 votes

Plot of Predator and Prey model problem

I couldn't resist to beautify E. Chan-López' snake charming plot ...
eldo's user avatar
  • 74.4k
1 vote

How to put a polygon and a line on a 3D plot

Using Region functionality: ...
Syed's user avatar
  • 55.4k
3 votes
Accepted

Retrieving only first function in matrix ODE using NDSolve

try this. Use Flatten[ρ[t]] Instead of ρ[t] In your NDSolve call. Now the solution list of 4 solutions. And then ...
Nasser's user avatar
  • 145k

Top 50 recent answers are included