ਤਸਵੀਰ:Gradient Visual.svg

testwiki ਤੋਂ
ਨੈਵੀਗੇਸ਼ਨ 'ਤੇ ਜਾਓ ਸਰਚ ਤੇ ਜਾਓ
ਅਸਲ ਫ਼ਾਈਲ (SVG ਫ਼ਾਈਲ, ਆਮ ਤੌਰ ’ਤੇ 720 × 540 ਪਿਕਸਲ, ਫ਼ਾਈਲ ਦਾ ਅਕਾਰ: 197 KB)

ਇਹ ਫ਼ਾਈਲ Wikimedia Commons ਦੀ ਹੈ ਅਤੇ ਹੋਰ ਪਰਿਯੋਜਨਾਵਾਂ ਵਿੱਚ ਵੀ ਵਰਤੀ ਜਾ ਸਕਦੀ ਹੈ । ਇਸ ਫ਼ਾਈਲ ਦੇ ਵੇਰਵਾ ਸਫ਼ੇ ਵਿੱਚ ਮੌਜੂਦ ਵੇਰਵਾ ਹੇਠ ਦਿਸ ਰਿਹਾ ਹੈ।

ਸਾਰ

 The SVG code is valid.
 This plot was created with Matplotlib.
ਵੇਰਵਾ
English: Recreate the PNG image Gradient99.png (see below) in SVG.
ਮਿਤੀ
ਸਰੋਤ ਆਪਣਾ ਕੰਮ
ਲਿਖਾਰੀ IkamusumeFan
Other versions
Source code
InfoField

Python code

"""Generate the graph of the function $f(x,y) = -(\cos^2x + \cos^2y)^2$."""

import numpy as np
from pylab import *
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.patches import FancyArrowPatch
from mpl_toolkits.mplot3d import proj3d

# Thanks to CT Zhu. See the link as follows
# http://stackoverflow.com/questions/22867620/putting-arrowheads-on-vectors-in-matplotlibs-3d-plot
class Arrow3D(FancyArrowPatch):
    def __init__(self, xs, ys, zs, *args, **kwargs):
        FancyArrowPatch.__init__(self, (0,0), (0,0), *args, **kwargs)
        self._verts3d = xs, ys, zs

    def draw(self, renderer):
        xs3d, ys3d, zs3d = self._verts3d
        xs, ys, zs = proj3d.proj_transform(xs3d, ys3d, zs3d, renderer.M)
        self.set_positions((xs[0],ys[0]),(xs[1],ys[1]))
        FancyArrowPatch.draw(self, renderer)

# draw the frames
ax = Axes3D(figure(), azim = -135, elev = 45)
X = arange(-pi/2, pi/2, pi/100)	# set ranges
Y = arange(-pi/2, pi/2, pi/100)
X, Y = meshgrid(X, Y)
Z = -(cos(X)**2+cos(Y)**2)**2	# give the function
ax.plot_wireframe(X, Y, Z, rstride = 10, cstride = 10)
ax.set_xlabel("x")
ax.set_ylabel("y")
ax.set_zlabel('f(x,y)')
ax.set_xlim([-pi/2,pi/2])
ax.set_ylim([-pi/2,pi/2])
ax.set_zlim([-4,0])

# draw the contoured quiver
X1 = arange(-pi/2, pi/2, pi/20)	# start of the arrows
Y1 = arange(-pi/2, pi/2, pi/20)
for x in X1:
	for y in Y1:
		ax.add_artist(Arrow3D([x,x+4*sin(x)*cos(x)*(cos(x)**2+cos(y)**2)*0.06],\
		[y,y+4*sin(y)*cos(y)*(cos(x)**2+cos(y)**2)*0.06],\
		[-3.9999,-4.0000],lw=1, mutation_scale=5,arrowstyle="->", color="r"))

plt.savefig("gradient_vis.svg")

ਲਸੰਸ

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
ਗੁਣਾਂ ਦੀ ਦੱਸ ਸ਼ੇਅਰ ਅਲਾਈਕ
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
ਤੁਹਾਨੂੰ ਖੁੱਲ੍ਹ ਹੈ:
  • ਸਾਂਝਾ ਕਰਨ ਲਈ – ਕੰਮ ਦੀ ਨਕਲ, ਵੰਡ ਅਤੇ ਭੇਜਣ ਲਈ
  • ਮੁੜ-ਰਲ਼ਾਉਣ ਲਈ – ਕੰਮ ਨੂੰ ਢਾਲਣ ਲਈ
ਥੱਲੇ ਲਿਖੀਆਂ ਸ਼ਰਤਾਂ ਹੇਠ:
  • ਗੁਣਾਂ ਦੀ ਦੱਸ – ਉਚਿਤ ਸਿਹਰਾ ਦੇਵੋ, ਲਸੰਸ ਦੀ ਇੱਕ ਕੜੀ ਪ੍ਰਦਾਨ ਕਰੋ ਅਤੇ ਇਹ ਦਰਸਾਓ ਕੀ ਤਬਦੀਲੀਆਂ ਕੀਤੀਆਂ ਗਈਆਂ ਸਨ। ਤੁਸੀਂ ਇਹ ਕਿਸੇ ਵੀ ਵਾਜਬ ਤਰੀਕੇ ਨਾਲ ਕਰ ਸਕਦੇ ਹੋ, ਪਰ ਇਹ ਤਰੀਕਾ ਅਜਿਹਾ ਨਹੀਂ ਹੋਣਾ ਚਾਹੀਦਾ ਜੋ ਇਹ ਸੁਝਾਅ ਦਿੰਦਾ ਹੈ ਕਿ ਲਸੰਸ ਦੇਣ ਵਾਲਾ ਤੁਹਾਨੂੰ ਜਾਂ ਤੁਹਾਡੀ ਵਰਤੋਂ ਦਾ ਸਮਰਥਨ ਕਰਦਾ ਹੈ।
  • ਸ਼ੇਅਰ ਅਲਾਈਕ – ਜੇਕਰ ਤੁਸੀਂ ਸਮੱਗਰੀ ਨੂੰ ਰੀਮਿਕਸ ਕਰਦੇ ਹੋ, ਬਦਲਦੇ ਹੋ ਜਾਂ ਬਣਾਉਂਦੇ ਹੋ, ਤਾਂ ਤੁਹਾਨੂੰ ਆਪਣੇ ਯੋਗਦਾਨਾਂ ਨੂੰ ਅਸਲੀ ਵਾਂਗ ਉਹੀ ਜਾਂ ਮੁਨਾਸਬ ਲਸੰਸ ਦੇ ਅਧੀਨ ਵੰਡਣਾ ਚਾਹੀਦਾ ਹੈ।

ਸੁਰਖੀ

Add a one-line explanation of what this file represents

Items portrayed in this file

ਚਿਤਰਨ

copyright status ਅੰਗਰੇਜ਼ੀ

copyrighted ਅੰਗਰੇਜ਼ੀ

26 ਅਕਤੂਬਰ 2014

source of file ਅੰਗਰੇਜ਼ੀ

original creation by uploader ਅੰਗਰੇਜ਼ੀ

software used for creation ਅੰਗਰੇਜ਼ੀ

Matplotlib ਅੰਗਰੇਜ਼ੀ

object of statement has role ਅੰਗਰੇਜ਼ੀ: plotting library ਅੰਗਰੇਜ਼ੀ
object of statement has role ਅੰਗਰੇਜ਼ੀ: free and open-source software ਅੰਗਰੇਜ਼ੀ
object of statement has role ਅੰਗਰੇਜ਼ੀ: Python package ਅੰਗਰੇਜ਼ੀ

ਫ਼ਾਈਲ ਦਾ ਅਤੀਤ

ਤਾਰੀਖ/ਸਮੇਂ ’ਤੇ ਕਲਿੱਕ ਕਰੋ ਤਾਂ ਉਸ ਸਮੇਂ ਦੀ ਫਾਈਲ ਪੇਸ਼ ਹੋ ਜਾਵੇਗੀ।

ਮਿਤੀ/ਸਮਾਂਨਮੂਨਾਨਾਪਵਰਤੋਂਕਾਰਟਿੱਪਣੀ
ਮੌਜੂਦਾ10:24, 26 ਅਕਤੂਬਰ 201410:24, 26 ਅਕਤੂਬਰ 2014 ਵੇਲੇ ਦੇ ਵਰਜਨ ਦਾ ਅੰਗੂਠਾਕਾਰ ਰੂਪ720 × 540 (197 KB)wikimediacommons>IkamusumeFanUser created page with UploadWizard

ਇਹ ਫਾਈਲ ਹੇਠਾਂ ਦਿੱਤਾ ਸਫ਼ਾ ਵਰਤਦਾ ਹੈ: