diff --git a/dist/pyResearchInsights-1.54.tar.gz b/dist/pyResearchInsights-1.54.tar.gz new file mode 100644 index 0000000..d459fbd Binary files /dev/null and b/dist/pyResearchInsights-1.54.tar.gz differ diff --git a/pyResearchInsights/Visualizer.py b/pyResearchInsights/Visualizer.py index 8f8cadf..3d87ccc 100755 --- a/pyResearchInsights/Visualizer.py +++ b/pyResearchInsights/Visualizer.py @@ -60,7 +60,7 @@ def topic_builder(lda_model, topic_order, num_topics, num_keywords, textual_data for topic in topic_order: '''Progressively generating the figures comprising the weights and frequencies for each keyword in each topic''' - fig, ax = plt.subplots(1, 1, figsize=[20, 15]) + _, ax = plt.subplots(1, 1, figsize=[20, 15]) x_axis = [x_axis_element for x_axis_element in range(0, num_keywords)] '''Creating the x_axis labels here, which is the topic keywords''' @@ -70,7 +70,7 @@ def topic_builder(lda_model, topic_order, num_topics, num_keywords, textual_data '''Here, we make sure that the y_axis labels are equally spaced, and that there are 10 of them''' word_count_list = [word_count for word_count in df.loc[df.topic_id==topic, 'word_count']] word_count_increment = (max(word_count_list)/10) - y_axis_labels = [0 + increment*(word_count_increment) for increment in range(0, 10)] + y_axis_labels = [round(0 + increment*(word_count_increment)) for increment in range(0, 10)] '''Here, we make sure that the y_axis_twin labels are equally spaced, and that there are 10 of them''' word_importance_list = [word_count for word_count in df.loc[df.topic_id==topic, 'importance']] diff --git a/setup.py b/setup.py index b95f42c..2115916 100644 --- a/setup.py +++ b/setup.py @@ -3,13 +3,13 @@ setup( name = 'pyResearchInsights', # How you named your package folder (MyLib) packages = ['pyResearchInsights'], # Chose the same as "name" - version = '1.53', # Start with a small number and increase it with every change you make + version = '1.54', # Start with a small number and increase it with every change you make license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository description = 'End-to-end tool for scientific literature analysis', # Give a short description about your library author = 'Sarthak J. Shetty', # Type in your name author_email = 'sarthakshetty97@gmail.com', # Type in your E-Mail url = 'https://github.com/SarthakJShetty/pyResearchInsights', # Provide either the link to your github or to your website - download_url = 'https://github.com/SarthakJShetty/pyResearchInsights/archive/v_153.tar.gz', # I explain this later on + download_url = 'https://github.com/SarthakJShetty/pyResearchInsights/archive/v_154.tar.gz', # I explain this later on keywords = ['Educational Tools', 'Analysis', 'Scraper', 'Natural Language Processing'], # Keywords that define your package best install_requires=[ # I get to this in a second 'numpy',