File:VFPt charges plus minus thumb.svg

From Vigyanwiki

Original file(SVG file, nominally 220 × 165 pixels, file size: 18 KB)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

Summary

Description
English: Field of a positive and a negative point charge. Thumbnail version
Date
Source Own work
Author Geek3
Other versions

VFPt charges plus minus.svg (full size version)

VFPt_charges_plus_minus_thumb_potential.svg (with electric potential)
SVG genesis
InfoField
 
The SVG code is valid.
 
This vector image was created with Inkscape, or with something else.
This image has been assessed using the Quality image guidelines and is considered a Quality image.

العربية  جازايرية  беларуская  беларуская (тарашкевіца)  български  বাংলা  català  čeština  Cymraeg  Deutsch  Schweizer Hochdeutsch  Zazaki  Ελληνικά  English  Esperanto  español  eesti  euskara  فارسی  suomi  français  galego  עברית  हिन्दी  hrvatski  magyar  հայերեն  Bahasa Indonesia  italiano  日本語  Jawa  ქართული  한국어  kurdî  Lëtzebuergesch  lietuvių  македонски  മലയാളം  मराठी  Bahasa Melayu  Nederlands  Norfuk / Pitkern  polski  português  português do Brasil  rumantsch  română  русский  sicilianu  slovenčina  slovenščina  shqip  српски / srpski  svenska  தமிழ்  తెలుగు  ไทย  Tagalog  toki pona  Türkçe  українська  vèneto  Tiếng Việt  中文  中文(简体)  中文(繁體)  +/−

Source code
InfoField

SVG code

# paste this code at the end of VectorFieldPlot 2.5
doc = FieldplotDocument('VFPt_charges_plus_minus_thumb',
    width=220, height=165, unit=30., commons=True)
field = Field([['monopole', {'x':-1, 'y':0, 'Q':1}],
    ['monopole', {'x':1, 'y':0, 'Q':-1}]])
doc.draw_charges(field, scale=11./14.)
n = 16
for i in range(n):
    a = 2.0 * pi * (0.5 + i) / n
    if abs(i - (n-1)/2.) > 6:
        fix = {'start':False, 'leave_image':False, 'enter_image':False, 'end':False}
    else:
        fix = {'start':True, 'leave_image':False, 'enter_image':False, 'end':True}
    line = FieldLine(field, [-1,0], start_v=[cos(a), sin(a)],
        directions='forward')
    doc.draw_line(line, linewidth=1.0, arrows_style={
        'dist':1.6, 'min_arrows':1, 'offsets':
        {'start':.65,'leave_image':.5,'enter_image':.5,'end':.65},
        'fixed_ends':fix, 'scale':1.4})
doc.write()


Licensing

I, the copyright holder of this work, hereby publish it under the following licences:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation Licence, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the licence is included in the section entitled GNU Free Documentation Licence.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported licence.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the licence, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible licence as the original.
You may select the licence of your choice.

Captions

Add a one-line explanation of what this file represents
Electric field of two opposite charges

Items portrayed in this file

depicts

May 2010

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current00:42, 15 March 2020Thumbnail for version as of 00:42, 15 March 2020220 × 165 (18 KB)wikimediacommons>Geek3I appreciate the compression. However, 18kB savings in the source code are no relevant advantage. The original image has a clear internal structure for simple reusability. It contains useful meta information. The approximation of lines by straight segments is the most simple one, and it is more precise than the "simplified" version with Beziers. Note e.g. that the arrows should be centered on each line.

Metadata