avatarDew Langrial

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

3969

Abstract

lors, and no axes by default, streamlining the process of plotting vector data. If needed, you can easily customize the appearance using gspatial_plot, Geopandas, or Matplotlib parameters.</p><div id="7f83"><pre>gsp<span class="hljs-selector-class">.shapeplot</span>(usa, figsize=(<span class="hljs-number">15</span>, <span class="hljs-number">15</span>))</pre></div><figure id="5a4f"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*hgepISp4blKLRyoMFCcqAg.png"><figcaption></figcaption></figure><p id="970d">You also have the option to adjust the parameters according to your needs. For instance, let’s incorporate a title into the visualization:</p><div id="b7f0"><pre>gsp.shapeplot( usa, title=<span class="hljs-string">"USA MAP"</span>, title_kwds={<span class="hljs-string">"fontsize"</span>: 25, <span class="hljs-string">"fontname"</span>: <span class="hljs-string">"sans-serif"</span>, <span class="hljs-string">"fontweight"</span>: 3}, )</pre></div><figure id="4438"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*mIWUUXOP3u1uiZXQs_N2Lg.png"><figcaption></figcaption></figure><p id="1dc8"><b>Here’s the explanation of the shapeplot function’s parameters:</b></p><p id="7d22">• data (GeoDataFrame): GeoDataFrame used as the data source for the map. • title (str): Title displayed on the map. Default is None. • title_kwds (dict): Keyword arguments for configuring title appearance using matplotlib.pyplot.title. Default is an empty dictionary. • figsize (tuple): Dimensions of the figure. Default is (15, 15). • facecolor (str): Background color of the figure. Default is “white”. • edgecolor (str): Color of the map’s edges. Default is “black”. • linewidth (float): Line width for shapes. Default is 0.5. • color (str): Color of the shape. Default is “#F1F3F4”. • annot (bool): Toggle annotations on/off. Default is False. • annot_column (str/GeoDataFrame column): Source column for annotations. Default is None. • annot_align (str): Text alignment for annotations. Default is “center”. • annot_kwds (dict): Keyword arguments for customizing annotations. Default is an empty dictionary. • ax (matplotlib axis): Existing axis for plotting, if needed. Default is None. • axis_on (bool): Toggle axis visibility. Default is False. • **geopandas_plot_kwds: Additional keyword arguments for Geopandas plot customization.</p><p id="5a62">Returns: Matplotlib axis object (ax) representing the map.</p><p id="39a4">This function enables straightforward GeoDataFrame shape plotting with customizable options for appearance and annotations, while allowing flexibility in using existing axes for plotting. The function returns a matplotlib axis object representing the generated map.</p><h1 id="7308">pointplot</h1><p id="e010">Point plot is designed specifically for visualizing point data. A key distinction between point plot and shapeplot lies in the ability to utilize a base vector layer of shapes. This base layer allows points to be plotted on top, enabling a layered representation.</p><div id="62be"><pre>usa_points = usa.representative_point() gsp.pointplot(usa_points, <span class="hljs-keyword">base</span>=usa)</pre></div><figure id="e5d7"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*ZOiYi_T2DL9CU9Kx7-KpGA.png"><figcaption></figcaption></figure><p id="6b86">Alternatively, you have the option to plot the polygons themselves instead of just their boundaries in the base layer.</p><div id="aac0"><pre>gsp.pointplot(usa_points, <span class="hljs-keyword">base</span>=usa, base_boundary=False)</pre></div><figure id="3412"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*_Sz_IGkazfobhvTpV3Y8Ag.png"><figcaption></figcaption></figure><p id="8f2e">Points can be plotted independently, without the need for a base layer.</p><div id="30aa"><pre>gsp<span class="hljs-selector-class">.pointplot</span>(usa_points)</pre></div><figure id="d8ed"><img src="https://cdn

Options

-images-1.readmedium.com/v2/resize:fit:800/1*zFOL9eUsmS-5S67MeufNcQ.png"><figcaption></figcaption></figure><p id="5c42">Matplotlib axis objects offer the ability to merge and combine multiple plots.</p><div id="4753"><pre>ax = gsp.shapeplot(usa, figsize=(<span class="hljs-number">15</span>, <span class="hljs-number">15</span>)) gsp.pointplot(usa_points, ax=ax)</pre></div><figure id="f05f"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*_Sz_IGkazfobhvTpV3Y8Ag.png"><figcaption></figcaption></figure><p id="b9e0">It’s also possible to tailor the appearance of the base layer according to your preferences.</p><div id="3dfa"><pre>gsp.pointplot( usa_points, base=usa, basecolor=<span class="hljs-string">"#7aebff"</span>, base_boundary=<span class="hljs-literal">False</span>, title=<span class="hljs-string">"USA Points"</span>, title_kwds={<span class="hljs-string">"fontsize"</span>: <span class="hljs-number">25</span>, <span class="hljs-string">"fontname"</span>: <span class="hljs-string">"sans-serif"</span>, <span class="hljs-string">"fontweight"</span>: <span class="hljs-number">3</span>}, )</pre></div><figure id="ce5a"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*AiPv5roDBIrvCc92oIvZ4g.png"><figcaption></figcaption></figure><p id="3d19"><b>Here’s the breakdown of the pointplot function’s parameters:</b></p><p id="a875">• data (GeoDataFrame): The GeoDataFrame used for plotting the map. • base (GeoDataFrame): Base GeoDataFrame on top of which the data will be plotted. Defaults to None. • title (str): Title of the map. Defaults to None. • title_kwds (dict): Keyword arguments for configuring the appearance of the title using matplotlib.pyplot.title. Defaults to an empty dictionary. • figsize (tuple): Size of the figure. Defaults to (15, 15). • color (str): Color of the point. Defaults to “#ffb536”. • edgecolor (str): Color of the map’s edges. Defaults to “black”. • basecolor (str): Color of the base data. Defaults to “#F1F3F4”. • baseboundarycolor (str): Boundary color of the base data. Defaults to “black”. • base_boundary (bool): Toggle visibility of base data boundaries. Defaults to True. • boundary_linewidth (float): Linewidth of the base data boundaries. Defaults to 0.5. • linewidth (float): Width of lines for shapes. Defaults to 0.5. • annot (bool): If True, annotations are generated. Defaults to False. • annot_column (str/GeoDataFrame column): If annot is True, column should be passed as the source for annotation. Defaults to None. • annot_align (str): Text alignment for annotations. Defaults to “center”. • annot_kwds (dict): Keyword arguments for annotation customization. Defaults to an empty dictionary. • ax (matplotlib axis): Existing axis for plotting. Defaults to None. • axis_on (bool): Toggle axis visibility. Defaults to False. • facecolor (str): Figure’s face color. Defaults to “white”. • **geopandas_plot_kwds: Additional Geopandas plot keyword arguments.</p><p id="fd44">Returns: Matplotlib axis object (ax).</p><h1 id="44de">Tips for Polished Maps</h1><p id="46bb"><b>Harmonious Color Choices:</b> Experiment with color palettes to create maps that are visually pleasing and easy to understand. Choose colors that enhance the readability of your map.</p><p id="6be4"><b>Precise Annotations:</b> Annotations provide context to your maps. Customize annotation alignment and appearance to guide viewers through your spatial narrative seamlessly.</p><p id="b235"><b>Seamless Matplotlib Integration:</b> Leverage the integration with Matplotlib to fine-tune your maps’ aesthetics, titles, and labels for a polished final product.</p><h1 id="071e">Conclusion</h1><p id="3df6">In this tutorial, we’ve covered the essentials of crafting geospatial maps using the gspatial_plot library. With gspatial_plot, the process of geospatial mapping becomes more manageable and easy. See you in the next tutorial— happy mapping!</p></article></body>

How Eight of My Stories Were Chosen for Further Distribution in 48 Hours

Did I break the curation jail again

Image by Gerd Altmann from Pixabay

Before my m͛͛͛o͛͛͛r͛͛͛n͛͛͛i͛͛͛n͛͛͛g͛͛͛ ͛͛͛c͛͛͛o͛͛͛f͛͛͛f͛͛͛e͛͛͛e͛͛͛, I check my 🆂🆃🅰🆃🆂. For the last full month, I had not seen a single story title with the beautiful grey-colored text below it that says, “𝘊𝘩𝘰𝘴𝘦𝘯 𝘧𝘰𝘳 𝘧𝘶𝘳𝘵𝘩𝘦𝘳 𝘥𝘪𝘴𝘵𝘳𝘪𝘣𝘶𝘵𝘪𝘰𝘯.” My curation rate is around 50% and I have written the most popular curation guide in simple words.

But today, I was surprised as I checked my story stats. One after the other, 🆂🅸🆇 (06) of my recent stories had been “Chosen for further distribution.” It is my n̐̈e̐̈w̐̈ ̐̈r̐̈e̐̈c̐̈o̐̈r̐̈d̐̈. My past best was three (03) stories in 24 hours. Then I got two more curations in the next 24 hours.

Yeah, I know it seems like I am bᵣaggᵢₙg. But I am ✌️positively✌️ thrilled and I want to share one possible reason for this curation luck. Sometimes not getting curated becomes quite frustrating for me. When my stories are not curated, the supportive comments of my friends and fellow editors encourage me to write.

I have plenty of 𝕓𝕖𝕒𝕦𝕥𝕚𝕗𝕦𝕝 𝕣𝕖𝕝𝕒𝕥𝕚𝕠𝕟𝕤 with many of my readers now. Most of them 🅻🅾🆅🅴 the way I write. Even my worst critics have praised me many times — though I welcome their negative comments to help me see my mistakes.

Believe me, I am still in a pleasant shock — what if it was just a fluke? You’ll know more as you read how this process began and lead me to increase my chances of breaking the curation jail:

Part🧡1

I am planning a series of articles about editing. I have learned a bunch about writing while trying to give writing tips to the Illumination writers. Dr Mehmet Yildiz advised me to include writing advice with Top 10 Series.

The journey towards this curation started when I spent a lot of time writing and then editing a piece about becoming a more effective writer. It took me six hours to complete this 2-minute read:

1. How To Become an Effective Writer in One Day

Is your mind drawn in several directions at once? That’s because your boundless freedom is an obstacle.

“Work expands so as to fill the time available for its completion,” it’s the so-called Parkinson’s Law.

I spent four hours editing the above piece. Next, I decided to explore how much time I should spend editing my pieces:

2. How Many Hours Should You Spend Editing — Is There a Standard Time

So, I was doing a lot of work without being technically aware of what I was doing. When I was mulling over these types of editing, I found the Society for Editing for professional editors.

To practice my skills of editing, I wrote another piece and edited it until I had removed everything unnecessary. It is about Ralph Waldo Emerson’s secret of life:

3. How Emerson’s Secret of Life Will Make You a Brave Person

“It is not the length of life, but the depth of life. He who is not everyday conquering some fear has not learned the secret of life.” ~ Ralph Waldo Emerson

What do you want from life? That depends on who you are. But for the most part, it depends on understanding what life needs from you to go on.

Part💙2

I have written many Top 10 Series listings in the last three months. Most of the time editorial bulletins are not curated.

But my newly acquired editing skills — I’ll talk about these skills in my upcoming editing series — helped me write better intros to these Top 10 listings.

The ʜɪɢʜᴇʀ ᴇᴅɪᴛɪɴɢ sᴛᴀɴᴅᴀʀᴅ helped the following three most recent listings to be chosen for further distribution as well:

4. How To Write More Positive and Inspiring Stories

Why do you occasionally sprinkle crushed red pepper on your pizza? Things taste more enjoyable if you mix different flavors in a controlled way.

Something similar happens when it comes to writing inspiring stories. Inspiring pieces should start with troubling tales to let the positivity shine through.

5. The Secret Ingredient To Make You a Good Nonfiction Writer

With so many new articles published every day, probably every one of your brilliant ideas has been done to death. Is it even possible to write original stories? And, if so, what is the one most important ingredient?

If you are like me, you cringe at how similar some of the newly published stories sound to your half-finished drafts.

6. How To Reinvigorate Your Passion for the Writing Craft

It’s easy to forget why you wanted to be a writer. Even sex, if it becomes a daily obligation, loses the element of fun. Writing becomes a chore if you don’t remember why you love writing.

Why do you like to write? Think about it for a minute.

For me, the answer is easy. I can feel how words affect me. Words can make me fresh, happy, and excited. I want to read everything — from Michael Crichton to Steven Pinker, from Arundhati Roy to Bruce Lipton. When I write, I feel at home.

7. Why New Writers Fail To Create High-Quality Work

Do you know the three mistakes every new writer makes?

First, they let a single failure define their ability. I still do that. New writers are on a quest to prove that they are not good writers.

J.K. Rowling’s Harry Potter failed 12 times when she sent the manuscript to different publishers. Later she earned more than a billion dollars writing his novel series.

https://readmedium.com/editors-picks-top-10-why-new-writers-fail-to-create-high-quality-work-c739e4e11488

8. How One Simple Realization Can Make You an Unstoppable Writer

When you see the Great Wall of China, what do you think? It’s a wall. No, I mean besides the wall. Like when was it built? Who constructed it and why?

Wonders like the Great Wall of China are not built in a day. The construction period is from 220 BC to 1644 AD. It was built to protect clashes between warring feudal states as well as to collect duties and taxes. The last parts were completed by the Ming Dynasty.

https://readmedium.com/editors-choice-top-10-how-one-simple-thing-can-make-you-an-unstoppable-writer-f398266ea584

𝐓𝐚𝐤𝐞𝐚𝐰𝐚𝐲𝐬

What I have learned from this recent love affair with curation is this:

  1. Focus on editing like a freak
  2. Restructure your story for better flow
  3. Remove every unnecessary word
  4. Don’t quit the hope of seeing your story making it to 𝖙𝖍𝖊 𝖈𝖍𝖔𝖘𝖊𝖓 𝖔𝖓𝖊𝖘.

Happy journey to further distribution.

I am inviting you to join our private Facebook group for Illumination writers. Also please follow my publication — positive minds.

If you find any mistake, typo, or other error, please leave a private note for correction. Thanks.

To be included as a top 10 writer, read these curation guidelines carefully.

You can read my curated stories here.

You can read the Top 10 Series — and meet 500+ top writers — with these links:

1–2–3–4–5–6–7–8–9–10–11–12–13–14–15–16–17–18–19–20–21–22–23–24–25–26–27–28–29–30–31–32–33–34–35–36–37–38–39–40–41–42–43–44–45–46–47–48–49–50–51–52 –53–54–55–56–57–58–59–60–61–62–63–64–65–66–67–68–69–70–71–72–73–74–75

Writing
Writing Tips
Reading
Readinglist
Self Improvement
Recommended from ReadMedium