Pattern finder in random bits /u/Pedro41RJ Python Education

Pattern finder in random bits /u/Pedro41RJ Python Education

https://pastebin.com/zLY9AMTr

Does this code prove that a creator is not necessary?

submitted by /u/Pedro41RJ
[link] [comments]

​r/learnpython https://pastebin.com/zLY9AMTr Does this code prove that a creator is not necessary? submitted by /u/Pedro41RJ [link] [comments] 

https://pastebin.com/zLY9AMTr

Does this code prove that a creator is not necessary?

submitted by /u/Pedro41RJ
[link] [comments]  https://pastebin.com/zLY9AMTr Does this code prove that a creator is not necessary? submitted by /u/Pedro41RJ [link] [comments]

Read more

Amateur Teenage coder /u/Happy-Gam3r-4543 Python Education

Amateur Teenage coder /u/Happy-Gam3r-4543 Python Education

Hey guys I really want to learn to code and I have been following all these python books and I am having trouble what do you guys suggest I do?

submitted by /u/Happy-Gam3r-4543
[link] [comments]

​r/learnpython Hey guys I really want to learn to code and I have been following all these python books and I am having trouble what do you guys suggest I do? submitted by /u/Happy-Gam3r-4543 [link] [comments] 

Hey guys I really want to learn to code and I have been following all these python books and I am having trouble what do you guys suggest I do?

submitted by /u/Happy-Gam3r-4543
[link] [comments]  Hey guys I really want to learn to code and I have been following all these python books and I am having trouble what do you guys suggest I do? submitted by /u/Happy-Gam3r-4543 [link] [comments]

Read more

Why does matplotlib.pyplot works but not matplotlib.pyplot.plot()? /u/codeforces_help Python Education

Why does matplotlib.pyplot works but not matplotlib.pyplot.plot()? /u/codeforces_help Python Education

Fails : AttributeError: module 'matplotlib' has no attribute 'pyplot'

import matplotlib matplotlib.pyplot.plot([12,3,4], [2,3,4]) 

Succeeds:

import matplotlib.pyplot as plt plt.plot([12,3,4], [2,3,4]) 

What is the difference between the two?

Strangely if I run the second piece of code first and then the first piece then it doesn’t complain.

submitted by /u/codeforces_help
[link] [comments]

​r/learnpython Fails : AttributeError: module ‘matplotlib’ has no attribute ‘pyplot’ import matplotlib matplotlib.pyplot.plot([12,3,4], [2,3,4]) Succeeds: import matplotlib.pyplot as plt plt.plot([12,3,4], [2,3,4]) What is the difference between the two? Strangely if I run the second piece of code first and then the first piece then it doesn’t complain. submitted by /u/codeforces_help [link] [comments] 

Fails : AttributeError: module 'matplotlib' has no attribute 'pyplot'

import matplotlib matplotlib.pyplot.plot([12,3,4], [2,3,4]) 

Succeeds:

import matplotlib.pyplot as plt plt.plot([12,3,4], [2,3,4]) 

What is the difference between the two?

Strangely if I run the second piece of code first and then the first piece then it doesn’t complain.

submitted by /u/codeforces_help
[link] [comments]  Fails : AttributeError: module ‘matplotlib’ has no attribute ‘pyplot’ import matplotlib matplotlib.pyplot.plot([12,3,4], [2,3,4]) Succeeds: import matplotlib.pyplot as plt plt.plot([12,3,4], [2,3,4]) What is the difference between the two? Strangely if I run the second piece of code first and then the first piece then it doesn’t complain. submitted by /u/codeforces_help [link] [comments]

Read more

How to make pip by using tkinter /u/Jaded-Supermarket247 Python Education

How to make pip by using tkinter /u/Jaded-Supermarket247 Python Education

So my project I want to make is Picture in Picture with field where u put url on yt video and it plays in that window I just don’t know how to put YouTube mp4 gui into tkinter

submitted by /u/Jaded-Supermarket247
[link] [comments]

​r/learnpython So my project I want to make is Picture in Picture with field where u put url on yt video and it plays in that window I just don’t know how to put YouTube mp4 gui into tkinter submitted by /u/Jaded-Supermarket247 [link] [comments] 

So my project I want to make is Picture in Picture with field where u put url on yt video and it plays in that window I just don’t know how to put YouTube mp4 gui into tkinter

submitted by /u/Jaded-Supermarket247
[link] [comments]  So my project I want to make is Picture in Picture with field where u put url on yt video and it plays in that window I just don’t know how to put YouTube mp4 gui into tkinter submitted by /u/Jaded-Supermarket247 [link] [comments]

Read more

3D of Elevation in Basemap ? /u/eidrisov Python Education

3D of Elevation in Basemap ? /u/eidrisov Python Education

Hi everyone!

I have just discovered Basemap and I have a few questions:

  1. Is it possible to actually build 3D design of the terrain in topological maps ? There is this example (see the code below) that allows elevations to be seen from above as a picture. What I am interested in is to see elevations not as a picture from above, but as a 3D objects, e.g. if I zoom in, I should be able to look at the mountain from the different sides as well as above.

    from mpl_toolkits.basemap import Basemap from mpl_toolkits.basemap import shiftgrid import matplotlib.pyplot as plt from osgeo import gdal import numpy as np

    map = Basemap(projection=’tmerc’, lat_0=0, lon_0=3, llcrnrlon=1.819757266426611, llcrnrlat=41.583851612359275, urcrnrlon=1.841589961763497, urcrnrlat=41.598674173123)

    ds = gdal.Open(“../sample_files/dem.tiff”) elevation = ds.ReadAsArray()

    map.imshow(plt.imread(‘../sample_files/orthophoto.jpg’))

    map.imshow(elevation, cmap = plt.get_cmap(‘terrain’), alpha = 0.5)

    plt.show()

  2. Is it possible to save elevation maps created by RidgeMap as .obj, .f3d or .stl files later to import into Fusion 360 (or any other 3D design program) ?

Thanks in advance for any help!

submitted by /u/eidrisov
[link] [comments]

​r/learnpython Hi everyone! I have just discovered Basemap and I have a few questions: Is it possible to actually build 3D design of the terrain in topological maps ? There is this example (see the code below) that allows elevations to be seen from above as a picture. What I am interested in is to see elevations not as a picture from above, but as a 3D objects, e.g. if I zoom in, I should be able to look at the mountain from the different sides as well as above. from mpl_toolkits.basemap import Basemap from mpl_toolkits.basemap import shiftgrid import matplotlib.pyplot as plt from osgeo import gdal import numpy as np map = Basemap(projection=’tmerc’, lat_0=0, lon_0=3, llcrnrlon=1.819757266426611, llcrnrlat=41.583851612359275, urcrnrlon=1.841589961763497, urcrnrlat=41.598674173123) ds = gdal.Open(“../sample_files/dem.tiff”) elevation = ds.ReadAsArray() map.imshow(plt.imread(‘../sample_files/orthophoto.jpg’)) map.imshow(elevation, cmap = plt.get_cmap(‘terrain’), alpha = 0.5) plt.show() Is it possible to save elevation maps created by RidgeMap as .obj, .f3d or .stl files later to import into Fusion 360 (or any other 3D design program) ? Thanks in advance for any help! submitted by /u/eidrisov [link] [comments] 

Hi everyone!

I have just discovered Basemap and I have a few questions:

  1. Is it possible to actually build 3D design of the terrain in topological maps ? There is this example (see the code below) that allows elevations to be seen from above as a picture. What I am interested in is to see elevations not as a picture from above, but as a 3D objects, e.g. if I zoom in, I should be able to look at the mountain from the different sides as well as above.

    from mpl_toolkits.basemap import Basemap from mpl_toolkits.basemap import shiftgrid import matplotlib.pyplot as plt from osgeo import gdal import numpy as np

    map = Basemap(projection=’tmerc’, lat_0=0, lon_0=3, llcrnrlon=1.819757266426611, llcrnrlat=41.583851612359275, urcrnrlon=1.841589961763497, urcrnrlat=41.598674173123)

    ds = gdal.Open(“../sample_files/dem.tiff”) elevation = ds.ReadAsArray()

    map.imshow(plt.imread(‘../sample_files/orthophoto.jpg’))

    map.imshow(elevation, cmap = plt.get_cmap(‘terrain’), alpha = 0.5)

    plt.show()

  2. Is it possible to save elevation maps created by RidgeMap as .obj, .f3d or .stl files later to import into Fusion 360 (or any other 3D design program) ?

Thanks in advance for any help!

submitted by /u/eidrisov
[link] [comments]  Hi everyone! I have just discovered Basemap and I have a few questions: Is it possible to actually build 3D design of the terrain in topological maps ? There is this example (see the code below) that allows elevations to be seen from above as a picture. What I am interested in is to see elevations not as a picture from above, but as a 3D objects, e.g. if I zoom in, I should be able to look at the mountain from the different sides as well as above. from mpl_toolkits.basemap import Basemap from mpl_toolkits.basemap import shiftgrid import matplotlib.pyplot as plt from osgeo import gdal import numpy as np map = Basemap(projection=’tmerc’, lat_0=0, lon_0=3, llcrnrlon=1.819757266426611, llcrnrlat=41.583851612359275, urcrnrlon=1.841589961763497, urcrnrlat=41.598674173123) ds = gdal.Open(“../sample_files/dem.tiff”) elevation = ds.ReadAsArray() map.imshow(plt.imread(‘../sample_files/orthophoto.jpg’)) map.imshow(elevation, cmap = plt.get_cmap(‘terrain’), alpha = 0.5) plt.show() Is it possible to save elevation maps created by RidgeMap as .obj, .f3d or .stl files later to import into Fusion 360 (or any other 3D design program) ? Thanks in advance for any help! submitted by /u/eidrisov [link] [comments]

Read more