{"id":25102892,"url":"https://github.com/tuni56/matplotlib_introduction","last_synced_at":"2025-10-16T07:46:51.630Z","repository":{"id":275789125,"uuid":"927191150","full_name":"tuni56/matplotlib_introduction","owner":"tuni56","description":"Want to bring trigonometry to life? With Matplotlib, you can easily plot the sine and cosine functions on the same graph, creating an intuitive visualization of their periodic nature.","archived":false,"fork":false,"pushed_at":"2025-02-04T19:43:23.000Z","size":157,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-16T12:52:49.272Z","etag":null,"topics":["data-science","data-visualization","matplotlib","python","trigonometry-visualisation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuni56.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-04T14:58:39.000Z","updated_at":"2025-06-13T18:32:23.000Z","dependencies_parsed_at":"2025-06-16T12:45:32.410Z","dependency_job_id":null,"html_url":"https://github.com/tuni56/matplotlib_introduction","commit_stats":null,"previous_names":["tuni56/matplotlib_introduction"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tuni56/matplotlib_introduction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuni56%2Fmatplotlib_introduction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuni56%2Fmatplotlib_introduction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuni56%2Fmatplotlib_introduction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuni56%2Fmatplotlib_introduction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuni56","download_url":"https://codeload.github.com/tuni56/matplotlib_introduction/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuni56%2Fmatplotlib_introduction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279166681,"owners_count":26118067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-science","data-visualization","matplotlib","python","trigonometry-visualisation"],"created_at":"2025-02-07T21:33:32.528Z","updated_at":"2025-10-16T07:46:51.600Z","avatar_url":"https://github.com/tuni56.png","language":"Python","readme":"# 📊 Visualizing Sine and Cosine with Matplotlib\n\nWant to bring trigonometry to life? With Matplotlib, you can easily plot the sine and cosine functions on the same graph, creating an intuitive visualization of their periodic nature.\n\n# 📖 Table of Contents\n- 🚀 About This Project\n- 📜 Code Preview\n- 📸 Output Preview\n- 🎯 How to Run\n- 🚀 Future Improvements\n- 🤝 Contributing\n- 📜 License\n- 📩 Contact\n- 🚀 About This Project\nThis repository contains a simple yet powerful Python script that:\n✅ Plots the sine and cosine functions over a defined range\n✅ Uses Matplotlib for high-quality graph rendering\n✅ Highlights key aspects of wave behavior, such as phase shifts and symmetry\n\n📜 Code Preview\n\nimport numpy as np\nimport matplotlib.pyplot as plt\n\n# Define the range of values\nx = np.linspace(0, 2 * np.pi, 100)\n\n# Compute sine and cosine values\ny_sin = np.sin(x)\ny_cos = np.cos(x)\n\n# Create the plot\nplt.figure(figsize=(8, 5))\nplt.plot(x, y_sin, label=\"Sine\", color=\"b\")\nplt.plot(x, y_cos, label=\"Cosine\", color=\"r\")\n\n# Add labels, title, and legend\nplt.xlabel(\"Angle (radians)\")\nplt.ylabel(\"Function value\")\nplt.title(\"Sine and Cosine Functions\")\nplt.legend()\n\n# Show the plot\nplt.grid()\nplt.show()\n📸 Output Preview\n![starting_matplotlib](https://github.com/user-attachments/assets/665a7bb5-c903-4f51-9697-eb1f503f53c3)\n\n\n🎯 How to Run\nInstall dependencies:\npip install numpy matplotlib\nRun the script:\npython plot_sine_cosine.py\n\n📌 Enhance the visualization! Try modifying colors, line styles, or adding annotations to make your plots even more insightful.\n\n🚀 Future Improvements\n🔹 Add interactive features using plotly\n🔹 Include additional trigonometric functions (e.g., tangent, cotangent)\n🔹 Save the plot as an image automatically\n🔹 Create an animated visualization of sine and cosine\n\n🤝 Contributing\nWant to improve this project? Feel free to fork the repository and submit a pull request!\n\nSteps to Contribute:\nFork this repository 🍴\nClone your forked repo\n\ngit clone https://github.com/your-username/matplotlib_introduction.git\ncd sine-cosine-plot\nCreate a new branch\n\ngit checkout -b feature-new-enhancement\nMake changes and commit\n\ngit add .\ngit commit -m \"Added a new feature\"\nPush your branch and submit a pull request\n\ngit push origin feature-new-enhancement\nWe appreciate every contribution! 🚀\n\n📜 License\nThis project is open-source and available under the MIT License.\n\n📩 Contact\n💬 Got questions or suggestions? Feel free to reach out:\n- 📧 Email: tunidev56@gmail.com\n- 🔗 GitHub Profile: https://github.com/tuni56\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuni56%2Fmatplotlib_introduction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuni56%2Fmatplotlib_introduction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuni56%2Fmatplotlib_introduction/lists"}