Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Term Entry]Python plotly graph carpet( #6308

Open
wants to merge 50 commits into
base: main
Choose a base branch
from

Conversation

aatidua
Copy link
Contributor

@aatidua aatidua commented Mar 9, 2025

Description

Issue Solved

Type of Change

  • Adding a new entry
  • Editing an existing entry (fixing a typo, bug, issues, etc)
  • Updating the documentation

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

aatidua and others added 30 commits January 24, 2025 13:32
Created Jupyter Notebook extension for entry
@aatidua aatidua marked this pull request as ready for review March 9, 2025 14:49
@mamtawardhani mamtawardhani self-assigned this Mar 10, 2025
@mamtawardhani mamtawardhani linked an issue Mar 10, 2025 that may be closed by this pull request
3 tasks
Copy link
Collaborator

@mamtawardhani mamtawardhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @aatidua, thank you for contributing to Codecademy Docs, the entry is nicely written! 😄

I've suggested a few changes, could you please review and modify those at your earliest convenience?
Also, please only keep the carpet.md file and its output image on this branch and remove the other files from this branch.
Thank you! 😃

@@ -0,0 +1,51 @@
---
Title: '.Carpet()'
Description: 'Creates visualization technique that displays interaction between variables'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Description: 'Creates visualization technique that displays interaction between variables'
Description: 'Creates a grid-based reference for visualizing data in a non-Cartesian coordinate system.'

Comment on lines 8 to 12
- 'Data'
- 'Finance'
- 'Plotly'
- 'Graphs'
- 'Data Visualization'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 'Data'
- 'Finance'
- 'Plotly'
- 'Graphs'
- 'Data Visualization'
- 'Data'
- 'Data Visualization'
- 'Finance'
- 'Graphs'
- 'Plotly'

- 'paths/data-visualization'
---

The **`.Carpet()`** , which is referred specifically as "carpet plot", is a Plotly function used to display interaction between one or more independent variables and one or more dependent variable in a two-dimensional plot.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The **`.Carpet()`** , which is referred specifically as "carpet plot", is a Plotly function used to display interaction between one or more independent variables and one or more dependent variable in a two-dimensional plot.
The **`.Carpet()`** function in Plotly is used to create a carpet plot, which provides a grid-based reference for visualizing the relationship between one or more independent variables and one or more dependent variables in a two-dimensional, non-Cartesian coordinate system.

Comment on lines 27 to 30
- `a`: First parameter values as an array
- `b`: Second parameter values as an array.
- `x`: (optional) It is a two dimensional x-coordinates at each carpet point and when omitted, the plot is a cheater plot and x-axis is hidden by default
- `y` : It is a two dimensional y-coordinates at each carpet point.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `a`: First parameter values as an array
- `b`: Second parameter values as an array.
- `x`: (optional) It is a two dimensional x-coordinates at each carpet point and when omitted, the plot is a cheater plot and x-axis is hidden by default
- `y` : It is a two dimensional y-coordinates at each carpet point.
- `a`: First independent variable values as an array.
- `b`: Second independent variable values as an array.
- `x` (optional): Specifies the x-coordinates of the carpet grid in Cartesian space. If omitted, the plot becomes a cheater plot, and the x-axis is hidden by default.
- `y` (optional): Specifies the y-coordinates of the carpet grid in Cartesian space.

- The ellipses is an indication of optional paratemeters that can be added.

## Example

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The example below demonstrates the use of `.Carpet()` function:

@mamtawardhani
Copy link
Collaborator

Hey @aatidua please also remove the other files from this branch and only keep the carpet.md file along with its output image

@aatidua aatidua force-pushed the python-plotly-graph-carpet branch from f712e20 to 4aa0ca3 Compare March 12, 2025 18:20
@mamtawardhani
Copy link
Collaborator

Hey @aatidua please make the requested changes 😄

@aatidua aatidua force-pushed the python-plotly-graph-carpet branch from af52b1b to 8eb79ef Compare March 16, 2025 13:23
@aatidua
Copy link
Contributor Author

aatidua commented Mar 16, 2025

@mamtawardhani I hope I have done it right now. I am still new and learning 😇😅

@aatidua aatidua requested a review from mamtawardhani March 16, 2025 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Term Entry] Python Plotly - graph_objects: .Carpet()
4 participants