I've been trying to draw a rectangular cloud (image below) with SVG path with with no success so far, any help with this would be much appreciated.
One way to do this is in a vector drawing program like inkscape, illustrator or animate. I used animate here to quickly trace a corner of the bubble and duplicate it a few times. I then used SVGO to optimize it a bit.
(note you'll probably want to run the code snippet as a full page to see everything)
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" width="228" height="198"><path stroke="red" stroke-width="2" stroke-linejoin="round" stroke-linecap="round" fill="none" d="M7.1 106.4q-.7-.55-1.45-1.4-2-2.4-2-5.75.05-3.45 2.15-5.85.75-.75 1.5-1.2-.75-.6-1.45-1.45-2-2.45-1.95-5.85 0-3.45 2.1-5.85.75-.8 1.55-1.25-.8-.6-1.5-1.4-2-2.45-1.95-5.85.05-3.5 2.1-5.9.75-.85 1.6-1.25-.8-.6-1.55-1.5-2-2.45-1.95-5.85.05-3.45 2.1-5.85.8-.85 1.6-1.3-.8-.55-1.55-1.45-2-2.4-1.95-5.85.05-3.45 2.1-5.85.8-.9 1.65-1.4-.85-.5-1.6-1.3-2-2.1-1.95-5.1 0-3.05 2.1-5.1.75-.8 1.7-1.35-2.05-2.6-2.05-6 0-4 2.85-6.85 2.85-2.85 6.85-2.85 4 0 6.85 2.85.3.3.55.6l.45-.4q.45-.5.9-.9 2.3-2.05 5.55-2.05 3.3 0 5.6 2.05.75.7 1.3 1.55.55-.85 1.3-1.55 2.3-2.05 5.55-2.05 3.3 0 5.6 2.05.8.75 1.35 1.6.6-.85 1.4-1.6Q54.9 5.9 58.2 5.9q3.35 0 5.7 2.05.8.75 1.35 1.6.6-.85 1.4-1.6Q69 5.9 72.3 5.9q3.35 0 5.7 2.05.8.75 1.2 1.5.55-.75 1.4-1.5 2.3-2.05 5.6-2.05 3.35 0 5.7 2.05.8.75 1.2 1.5.6-.8 1.4-1.5 2.3-2.05 5.6-2.05 3.35 0 5.7 2.05.523.49.875.975.352-.484.875-.975 2.35-2.05 5.7-2.05h.3q3.105.094 5.3 2.05.8.7 1.4 1.5.4-.75 1.2-1.5 2.35-2.05 5.7-2.05 3.3 0 5.6 2.05.8.7 1.4 1.5.4-.75 1.2-1.5 2.35-2.05 5.7-2.05 3.3 0 5.6 2.05.85.75 1.4 1.5.4-.75 1.2-1.5 2.35-2.05 5.7-2.05 3.3 0 5.65 2.05.8.75 1.4 1.6.55-.85 1.35-1.6 2.35-2.05 5.7-2.05 3.3 0 5.65 2.05.8.75 1.4 1.6.55-.85 1.35-1.6 2.3-2.05 5.6-2.05 3.25 0 5.55 2.05.75.7 1.3 1.55.55-.85 1.3-1.55 2.3-2.05 5.6-2.05 3.25 0 5.55 2.05.45.4.9.9l.45.4q.25-.3.55-.6 2.85-2.85 6.85-2.85 4 0 6.85 2.85 2.85 2.85 2.85 6.85 0 3.4-2.05 6 .95.55 1.7 1.35 2.1 2.05 2.1 5.1.05 3-1.95 5.1-.75.8-1.6 1.3.85.5 1.65 1.4 2.05 2.4 2.1 5.85.05 3.45-1.95 5.85-.75.9-1.55 1.45.8.45 1.6 1.3 2.05 2.4 2.1 5.85.05 3.4-1.95 5.85-.75.9-1.55 1.5.85.4 1.6 1.25 2.05 2.4 2.1 5.9.05 3.4-1.95 5.85-.7.8-1.5 1.4.8.45 1.55 1.25 2.1 2.4 2.1 5.85.05 3.4-1.95 5.85-.7.85-1.45 1.45.75.45 1.5 1.2 2.1 2.4 2.15 5.85 0 3.35-2 5.75-.75.85-1.45 1.4m-16.9-97.55q.2.2.4.45l.05-.05M7 106.8q-.75.6-1.45 1.45-2 2.45-1.95 5.85 0 3.45 2.1 5.85.75.8 1.55 1.25-.8.6-1.5 1.4-2 2.45-1.95 5.85.05 3.5 2.1 5.9.75.85 1.6 1.25-.8.6-1.55 1.5-2 2.45-1.95 5.85.05 3.45 2.1 5.85.8.85 1.6 1.3-.8.55-1.55 1.45-.569.683-.975 1.45-1.01 1.931-.975 4.4.05 3.45 2.1 5.85.8.9 1.65 1.4-.408.24-.8.55-.41.334-.8.75-2 2.1-1.95 5.1 0 3.05 2.1 5.1.75.8 1.7 1.35-2.05 2.6-2.05 6 0 4 2.85 6.85 2.85 2.85 6.85 2.85 4 0 6.85-2.85.3-.3.55-.6l.05-.05q.2.25.4.45.45.5.9.9 2.3 2.05 5.55 2.05 3.3 0 5.6-2.05.75-.7 1.3-1.55.55.85 1.3 1.55 2.3 2.05 5.55 2.05 3.3 0 5.6-2.05.8-.75 1.35-1.6.6.85 1.4 1.6 2.35 2.05 5.65 2.05 3.35 0 5.7-2.05.8-.75 1.35-1.6.6.85 1.4 1.6 2.35 2.05 5.65 2.05 3.35 0 5.7-2.05.8-.75 1.2-1.5.55.75 1.4 1.5 2.3 2.05 5.6 2.05 3.35 0 5.7-2.05.8-.75 1.2-1.5.6.8 1.4 1.5 2.3 2.05 5.6 2.05 3.35 0 5.7-2.05.776-.727 1.175-1.45.4.723 1.175 1.45 2.35 2.05 5.7 2.05h.3q3.1-.1 5.3-2.05.8-.7 1.4-1.5.4.75 1.2 1.5 2.35 2.05 5.7 2.05 3.3 0 5.6-2.05.8-.7 1.4-1.5.4.75 1.2 1.5 2.35 2.05 5.7 2.05 3.3 0 5.6-2.05.85-.75 1.4-1.5.4.75 1.2 1.5 2.35 2.05 5.7 2.05 3.3 0 5.65-2.05.8-.75 1.4-1.6.55.85 1.35 1.6 2.35 2.05 5.7 2.05 3.3 0 5.65-2.05.8-.75 1.4-1.6.55.85 1.35 1.6 2.3 2.05 5.6 2.05 3.25 0 5.55-2.05.75-.7 1.3-1.55.55.85 1.3 1.55 2.3 2.05 5.6 2.05 3.25 0 5.55-2.05.45-.4.9-.9.2-.2.4-.45l.05.05q.25.3.55.6 2.85 2.85 6.85 2.85 4 0 6.85-2.85 2.85-2.85 2.85-6.85 0-3.4-2.05-6 .95-.55 1.7-1.35 2.1-2.05 2.1-5.1.05-3-1.95-5.1-.39-.416-.8-.75-.392-.31-.8-.55.85-.5 1.65-1.4 2.05-2.4 2.1-5.85.036-2.469-.975-4.4-.406-.767-.975-1.45-.75-.9-1.55-1.45.8-.45 1.6-1.3 2.05-2.4 2.1-5.85.05-3.4-1.95-5.85-.75-.9-1.55-1.5.85-.4 1.6-1.25 2.05-2.4 2.1-5.9.05-3.4-1.95-5.85-.7-.8-1.5-1.4.8-.45 1.55-1.25 2.1-2.4 2.1-5.85.05-3.4-1.95-5.85-.7-.85-1.45-1.45m-16.7 83.35.45-.4M24 8.85q-.2.2-.4.45l-.05-.05m.15 180.9-.45-.4"/></svg>
Related
I need help on the below problem,
Problem:
I have below dataframe. In this dataframe, first row is a title, and first column is also a title column. I have three different rows of 5.0, 10.0, 20.0 in first column (Phi) and I have different values against different values.
df_combined
Phi 0.0 10.0 20.0 30.0 40.0 50.0 60.0 70.0
5.0 -6.7 5.6 -2.7 -1.0 4.4 -6.4 6.3 -4.2
10.0 -3.8 3.1 -1.5 -0.5 2.5 -3.6 3.6 -2.4
20.0 6.3 -5.3 2.6 0.9 -4.2 6.1 -6.0 4.0
5.0 -1.7 5.6 -6.7 -7.0 1.4 -0.4 3.3 -4.2
10.0 -3.8 3.1 -1.5 -4.5 2.5 -1.6 2.6 -4.4
20.0 6.3 -1.3 2.6 0.9 -4.2 6.1 -7.0 4.0
5.0 -0.7 5.6 -6.7 -7.0 1.4 -0.4 3.3 -4.2
10.0 -3.8 3.1 -6.5 -2.5 6.5 -8.6 4.6 -3.4
20.0 6.3 -1.3 2.6 3.9 -3.2 4.1 -5.0 9.0
Expected output:
I want my dataframe lookimg like this where values against 5.0 come together. And same for 10.0 and 20.0. I do not want to aggregate or count or addition of these values. I just want these columns come together next to each other.
Phi 0.0 10.0 20.0 30.0 40.0 50.0 60.0 70.0
-6.7 5.6 -2.7 -1.0 4.4 -6.4 6.3 -4.2
5.0 -1.7 5.6 -6.7 -7.0 1.4 -0.4 3.3 -4.2
-0.7 5.6 -6.7 -7.0 1.4 -0.4 3.3 -4.2
10.0 -3.8 3.1 -1.5 -4.5 2.5 -1.6 2.6 -4.4
-3.8 3.1 -6.5 -2.5 6.5 -8.6 4.6 -3.4
6.3 -5.3 2.6 0.9 -4.2 6.1 -6.0 4.0
20.0 6.3 -1.3 2.6 0.9 -4.2 6.1 -7.0 4.0
6.3 -1.3 2.6 3.9 -3.2 4.1 -5.0 9.0
I tried groupby function like below,
df_combined2 = df_combined.groupby(df_combined['Phi'])
But got below error,
<pandas.core.groupby.generic.DataFrameGroupBy object at 0x000001BE9EC2BDC0>
What should I do?
sort the values by PHI and then make the repeating values as empty
# sort the dataframe
df=df.sort_values('Phi')
#to make repetitive values under PHI as empty
df['Phi']=df['Phi'].mask(df['Phi'].eq(df['Phi'].shift(1)), "")
df
OR
# sort the dataframe
df=df.sort_values('Phi')
# makes PHI as empty when diff from previous value is 0
df['Phi']=df['Phi'].mask(df['Phi'].diff().eq(0), '')
df
Phi 0.0 10.0 20.0 30.0 40.0 50.0 60.0 70.0
0 5.0 -6.7 5.6 -2.7 -1.0 4.4 -6.4 6.3 -4.2
3 -1.7 5.6 -6.7 -7.0 1.4 -0.4 3.3 -4.2
6 -0.7 5.6 -6.7 -7.0 1.4 -0.4 3.3 -4.2
1 10.0 -3.8 3.1 -1.5 -0.5 2.5 -3.6 3.6 -2.4
4 -3.8 3.1 -1.5 -4.5 2.5 -1.6 2.6 -4.4
7 -3.8 3.1 -6.5 -2.5 6.5 -8.6 4.6 -3.4
2 20.0 6.3 -5.3 2.6 0.9 -4.2 6.1 -6.0 4.0
5 6.3 -1.3 2.6 0.9 -4.2 6.1 -7.0 4.0
8 6.3 -1.3 2.6 3.9 -3.2 4.1 -5.0 9.0
This code is used to display a logo from a reactjs project, but the text of it does not make any sense. What are all the numbers?
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
See docs about path in SVG
A path is described using the concept of a current point. In an
analogy with drawing on paper, the current point can be thought of as
the location of the pen. The position of the pen can be changed, and
the outline of a shape (open or closed) can be traced by dragging the
pen in either straight lines or curves.
Paths represent the geometry of the outline of an object, defined in
terms of moveto (set a new current point), lineto (draw a straight
line), curveto (draw a curve using a cubic Bézier), arc (elliptical or
circular arc) and closepath (close the current shape by connecting to
the last moveto) commands. Compound paths (i.e., a path with multiple
subpaths) are possible to allow effects such as "donut holes" in
objects.
That's an svg file. Those numbers are setting the path of the drawing (as the direction of a pencil in paper)
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
If you render it , you'll be able to see the icon:
render: function() {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3">
(...) //your svg contents here
</svg>
);
}
Reading this answer, you could also render it like:
import { ReactComponent as logosvg} from './logo.svg';
const App = () => (
<div>
<logosvg/>
</div>
);
Which also would be a lot cleaner, since you don't need to include the entire contents of the svg file in your code.
Regardless of how you render it, the result is this:
So all those numbers inside the path are the ones defining the symbol (guiding the pencil).
Besides the numbers inside <path>, the other elements are also setting its properties. For example, <circle cx="420.9" cy="296.5" r="45.7"/> is the one responsible for drawing the inner circle.
Take that part off and you lose the nucleum (so the logo is not as cool as before):
The floating point numbers with finite precision are represented with different precision in identical conditions
It is detected and tested on python version 3.x under Linux and Windows. And take the negative effect for the next calculation.
for i in range(100):
k = 1 + i / 100;
print(k)
1.0
1.01
1.02
1.03
1.04
1.05
1.06
1.07
1.08
1.09
1.1
1.11
1.12
1.13
1.1400000000000001
1.15
1.16
1.17
1.18
1.19
1.2
1.21
1.22
1.23
1.24
1.25
1.26
1.27
1.28
1.29
1.3
1.31
1.32
1.33
1.34
1.35
1.3599999999999999
1.37
1.38
1.3900000000000001
1.4
1.41
1.42
1.43
1.44
1.45
1.46
1.47
1.48
1.49
1.5
1.51
1.52
1.53
1.54
1.55
1.56
1.5699999999999998
1.58
1.5899999999999999
1.6
1.6099999999999999
1.62
1.63
1.6400000000000001
1.65
1.6600000000000001
1.67
1.6800000000000002
1.69
1.7
1.71
1.72
1.73
1.74
1.75
1.76
1.77
1.78
1.79
1.8
1.81
1.8199999999999998
1.83
1.8399999999999999
1.85
1.8599999999999999
1.87
1.88
1.8900000000000001
1.9
1.9100000000000001
1.92
1.9300000000000002
1.94
1.95
1.96
1.97
1.98
1.99
It is possible to set the precision in the following way:
for i in range(100):
k = 1 + i / 100;
print("%.Nf"%k)
Where N - decimal numbers.
Keep in mind, that regularly you don't need a lot of them, though the number could be really huge.
The SVG file is an outline of the highland map in Scotland. The closing reads like an error and is in red in Brackets. I'm using an SVG of the UK to reference from...If anyone has experience understanding the SVG file and sees where I've gone wrong, your help would be much appreciated.
<svg class="img-fluid" baseprofile="tiny" fill="#008000" stroke="black" version="1.2" viewbox="0 0 1000 1870" width="100%" xmlns="http://www.w3.org/2000/svg">
<path d="M226.8 714.8l0 1.3 2.5 0-1.3 6.4-1.8 3.7-2.7 1.6-3.6 0.4-1.7-1-1.6-4.2-1.4-1-1.4-0.6-3-3.2-1.8-1 5.7-6.7 3-2.4 3.8-0.5 5 3.2 2.1 2.4-1.8 1.6z m-23.6-5.8l-3.1 0.5-3.1-0.1-2.5-0.6 1.5-1.3 3.3-2 1.8-0.4 1.1 1 2.3 0.6 1.2 0.9-2.5 1.4z m56.7-42.7l-3.2 1.3-2.5-1.1-2.2-2.3-0.6-2.5 2.3-1.4 3.3 0.7 2.5 2.5 0.4 2.8z m-5.5-36.7l-0.4 2.7-1.6 5.3-1.4 6.2 0.1 5.4 0.8 1.3 1.3 3 0.5 2.9-1.6 1.3-1.6 0.7-1.5 1.1-1.6 0.6-1.6-1.1 0.3-1.2 0.4-1.3-1-1.5-0.2-3 0.8-11.4 0.7-3 1.5-1.4 2.8-0.4 0-1.2-1.2-1.8-0.8-1.9 1.1-1.1 1-0.1 1.9 1.2 0-1.3-1.3-2.4 0.8 0.2 0.7 0.5 0.6 0.7 0.5 1z m1.4-6.5l0 2.8-1.5-0.8-0.6-1.8 0.2-2.4 1.1-2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0.6-6.2 6.3-0.9 1.2-0.8 1.8-0.8 2.8 0.5 0.1 1.3-1 2.9-1.2 1.4-1.5 1.4-1.8 0.9-1.7 1.2-1.7 4.4-2.7 3.7-3.9 4.1-2.1 0.8-0.1 1.1 0.5 1.2 1.6 4.9 1.1 2.1-0.1 1.5-1.2 1.2-1.3 4.2-2.7 1.5-0.3 0.4 2.3-2 3.7-2.7 3.5-2.8 2.3-3.4 5.4 0.6 1.6 0.7 0.9-4.5 0.4-1.8 1.1-1.6 2.1 0.9 1.7-0.7 0.2-2.2-0.7-5.2 0 0 1.4 2.7-0.1 1.3 0.3 1.2 0.9-1.8 4.1-1 1.8-1.1 1.4 3.4 0.9 1.8 0.1 2-1 1.5-2 0.8-1.1 0-0.6 2.2-0.1 1-0.6 1.8-2.6 1.4-1.4 1.5-1 1.4-0.4 1.7-0.8-1.1-2-3.6-3.3 2.7 0.2 8.8-1.4 9.2 0.9 3-0.9 7.9-6z" id="GBR2745" name="Highland">
</path>
</svg>
With the following function:
=FREQUENCY(C2:C724,D2:D37)
The second parameter is the BIN
What I don't understand is why Excel would increment the BIN for the rest of your values. The BIN does not change! It stays the same bin. Yet when I paste the formula for all my values it does this:
=FREQUENCY(C2:C724,D2:D37)
=FREQUENCY(C2:C724,D3:D38)
=FREQUENCY(C2:C724,D4:D39)
The last column is what was generated (and this is correct but it does not make sense!!)
Etoh bin
15.9 20 0
14.6 19 0
14.1 18 0
13.9 17 0
13.3 16 0
13.3 15 0
13.2 14 1
12.6 13 2
12.1 12 3
11.8 11 6
11.5 10 4
11.2 9 4
11 8 8
10.5 7 10
10.3 6 26
10.3 5 27
10.2 4 40
10.1 3 89
9.8 2 151
9.7 1 205
9.5 0 102
9.1 -1 17
8.9 -2 7
8.3 -3 3
8.1 -4 2
8.1 -5 0
7.9 -6 3
7.6 -7 2
7.5 -8 2
7.5 -9 1
7.5 -10 1
7.4 -11 0
7.2 -12 0
7.1 -13 1
7.0 -14 0
7.0 -15 0
6.8
6.7
6.6
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0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
-0.1
-0.1
-0.1
-0.1
-0.1
-0.1
-0.1
-0.1
-0.1
-0.1
-0.1
-0.1
-0.1
-0.1
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.3
-0.3
-0.3
-0.3
-0.3
-0.3
-0.3
-0.3
-0.3
-0.3
-0.4
-0.4
-0.4
-0.4
-0.4
-0.4
-0.4
-0.4
-0.4
-0.4
-0.4
-0.5
-0.5
-0.5
-0.5
-0.5
-0.5
-0.6
-0.6
-0.6
-0.6
-0.6
-0.6
-0.7
-0.7
-0.7
-0.7
-0.7
-0.7
-0.7
-0.7
-0.8
-0.8
-0.8
-0.8
-0.8
-0.8
-0.8
-0.8
-0.9
-0.9
-0.9
-0.9
-0.9
-0.9
-1.0
-1.0
-1.0
-1.0
-1.0
-1.0
-1.1
-1.1
-1.2
-1.2
-1.2
-1.3
-1.3
-1.7
-1.8
-1.9
-1.9
-2.1
-2.2
-2.4
-2.4
-2.5
-2.5
-2.6
-3.0
-3.2
-3.7
-4.6
-4.6
-6.1
-6.3
-6.3
-7.0
-7.8
-8.1
-8.5
-9.0
-10.2
-13.2
If I do as both of you suggested with the $, I am getting the WRONG results:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
It's a bit of keyboarding to make it easier, not mouse work, but do exactly this:
In cell E2, enter
=FREQUENCY(C2:C724,D2:D37). Hit
Enter.
You should now be on cell E3.
Press on the up arrow once on your
keyboard to return to E2 (and it will be 0).
Hold
down the Shift key and press on the down arrow until you've
reached cell E37. E2 through E37 will be highlighted.
Don't do anything else other than
hit the F2 key on your
keyboard now.
Now press and hold down
Ctrl + Shift.
Then, with those two held down, hit
Enter.
Voila! In every cell between E2
and E37 you should see this
{=FREQUENCY(C2:C724,D2:D37)} in the formula bar
(notice the {} brackets) and
the formula works. This is what makes an array formula.
It looks like what you've done is tried to copy and paste the function from the first cell to each of the subsequent cells.
Because it's an array function, what you need to do is:
Copy the text of the first cell (from the formula bar)
Select all the cells you are wanting the results to appear in
Paste the text you just copied into the formula bar
Press ctrl-shift-enter
This will put the same array function into all the cells
Unsure what you mean but it sounds like you need to use absolute addressing, prefix the column with $
You need to use absolute reference for the second argument only =FREQUENCY(C2:C$724,D2:D37)